N°3015 - fix notice

This commit is contained in:
Eric
2020-07-15 09:38:33 +02:00
parent e7fa9eda65
commit 7e970ee93c

View File

@@ -19,7 +19,6 @@ use LoginTwigContext;
use LoginWebPage;
use MetaModel;
use phpCAS;
use URP_UserProfile;
use User;
use UserExternal;
use utils;
@@ -57,8 +56,6 @@ class CASLoginExtension extends AbstractLoginFSMExtension implements iLogoutExte
unset($_SESSION['login_will_redirect']);
}
else
{
if ($_SESSION['login_mode'] == 'cas')
{
if (!isset($_SESSION['login_will_redirect']))
{
@@ -70,7 +67,6 @@ class CASLoginExtension extends AbstractLoginFSMExtension implements iLogoutExte
$iErrorCode = LoginWebPage::EXIT_CODE_MISSINGLOGIN;
return LoginWebPage::LOGIN_FSM_ERROR;
}
}
$_SESSION['login_mode'] = 'cas';
phpCAS::forceAuthentication(); // Redirect to CAS and exit
}