N°2311 - Refactor Login FSM for errors

This commit is contained in:
Eric
2019-09-30 13:45:50 +02:00
parent db0a5bd071
commit 75dc11b882
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@ class LoginDefaultBefore extends AbstractLoginFSMExtension
protected function OnError(&$iErrorCode)
{
static::ResetSession();
LoginWebPage::ResetSession();
$iOnExit = LoginWebPage::getIOnExit();
if ($iOnExit == LoginWebPage::EXIT_RETURN)
{

View File

@@ -346,7 +346,7 @@ class LoginWebPage extends NiceWebPage
$this->output();
}
static function ResetSession()
public static function ResetSession()
{
// Unset all of the session variables.
unset($_SESSION['auth_user']);