n°1617 - meets iTop fence requirements

This commit is contained in:
bruno DA SILVA
2019-10-09 18:53:40 +02:00
parent 4afed39b0e
commit d1eb674314
6 changed files with 67 additions and 2 deletions

View File

@@ -34,6 +34,17 @@ class LoginBasic extends AbstractLoginFSMExtension
return LoginWebPage::LOGIN_FSM_CONTINUE;
}
protected function OnReadCredentials(&$iErrorCode)
{
if ($_SESSION['login_mode'] == 'basic')
{
list($sAuthUser, $sAuthPwd) = $this->GetAuthUserAndPassword();
$_SESSION['login_temp_auth_user'] = $sAuthUser;
}
return LoginWebPage::LOGIN_FSM_CONTINUE;
}
protected function OnCheckCredentials(&$iErrorCode)
{
if ($_SESSION['login_mode'] == 'basic')