New feature: Forgot password -> email to reset (possibly disabled in the config file)

SVN:trunk[2855]
This commit is contained in:
Romain Quetiez
2013-09-24 09:15:52 +00:00
parent 76e0ee66ae
commit fde3808cdf
7 changed files with 442 additions and 96 deletions

View File

@@ -51,16 +51,9 @@ switch($sLoginMode)
phpCAS::logoutWithRedirectService($sCASLogoutUrl); // Redirects to the CAS logout page
break;
}
$oPage = new LoginWebPage();
$oPage = LoginWebPage::NewLoginWebPage();
$oPage->no_cache();
$sVersionShort = Dict::Format('UI:iTopVersion:Short', ITOP_VERSION);
$sIconUrl = Utils::GetConfig()->Get('app_icon_url');
$sDisplayIcon = utils::GetAbsoluteUrlAppRoot().'images/itop-logo-external.png';
if (file_exists(MODULESROOT.'branding/login-logo.png'))
{
$sDisplayIcon = utils::GetAbsoluteUrlModulesRoot().'branding/login-logo.png';
}
$oPage->add("<div id=\"login-logo\"><a href=\"".htmlentities($sIconUrl, ENT_QUOTES, 'UTF-8')."\"><img title=\"$sVersionShort\" src=\"$sDisplayIcon\"></a></div>\n");
$oPage->DisplayLoginHeader();
$oPage->add("<div id=\"login\">\n");
$oPage->add("<h1>".Dict::S('UI:LogOff:ThankYou')."</h1>\n");