Skip to content

Commit

Permalink
N°5394 - use session for the FSM (use Session object)
Browse files Browse the repository at this point in the history
  • Loading branch information
eespie committed Dec 8, 2022
1 parent 4a22361 commit bdebea6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion application/loginbasic.class.inc.php
Expand Up @@ -59,7 +59,6 @@ protected function OnCheckCredentials(&$iErrorCode)
list($sAuthUser, $sAuthPwd) = $this->GetAuthUserAndPassword();
if (!UserRights::CheckCredentials($sAuthUser, $sAuthPwd, Session::Get('login_mode'), 'internal'))
{
$_SESSION['auth_user'] = $sAuthUser;
$iErrorCode = LoginWebPage::EXIT_CODE_WRONGCREDENTIALS;
return LoginWebPage::LOGIN_FSM_ERROR;
}
Expand Down
1 change: 0 additions & 1 deletion application/loginexternal.class.inc.php
Expand Up @@ -42,7 +42,6 @@ protected function OnCheckCredentials(&$iErrorCode)
$sAuthUser = $this->GetAuthUser();
if (!UserRights::CheckCredentials($sAuthUser, '', Session::Get('login_mode'), 'external'))
{
$_SESSION['auth_user'] = $sAuthUser;
$iErrorCode = LoginWebPage::EXIT_CODE_WRONGCREDENTIALS;
return LoginWebPage::LOGIN_FSM_ERROR;
}
Expand Down
1 change: 0 additions & 1 deletion application/loginform.class.inc.php
Expand Up @@ -68,7 +68,6 @@ protected function OnCheckCredentials(&$iErrorCode)
$sAuthPwd = utils::ReadPostedParam('auth_pwd', null, 'raw_data');
if (!UserRights::CheckCredentials($sAuthUser, $sAuthPwd, Session::Get('login_mode'), 'internal'))
{
$_SESSION['auth_user'] = $sAuthUser;
$iErrorCode = LoginWebPage::EXIT_CODE_WRONGCREDENTIALS;
return LoginWebPage::LOGIN_FSM_ERROR;
}
Expand Down
1 change: 0 additions & 1 deletion application/loginurl.class.inc.php
Expand Up @@ -57,7 +57,6 @@ protected function OnCheckCredentials(&$iErrorCode)
$sAuthPwd = utils::ReadParam('auth_pwd', null, false, 'raw_data');
if (!UserRights::CheckCredentials($sAuthUser, $sAuthPwd, Session::Get('login_mode'), 'internal'))
{
$_SESSION['auth_user'] = $sAuthUser;
$iErrorCode = LoginWebPage::EXIT_CODE_WRONGCREDENTIALS;
return LoginWebPage::LOGIN_FSM_ERROR;
}
Expand Down

0 comments on commit bdebea6

Please sign in to comment.