mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-20 09:08:42 +02:00
Merge remote-tracking branch 'origin/support/3.0' into develop
# Conflicts: # application/loginwebpage.class.inc.php # composer.json # lib/composer/installed.json # lib/guzzlehttp/psr7/.github/workflows/ci.yml # lib/guzzlehttp/psr7/.github/workflows/integration.yml # lib/guzzlehttp/psr7/.github/workflows/static.yml # lib/guzzlehttp/psr7/CHANGELOG.md # lib/guzzlehttp/psr7/composer.json # lib/guzzlehttp/psr7/src/MessageTrait.php # tests/php-unit-tests/ItopDataTestCase.php
This commit is contained in:
@@ -79,7 +79,7 @@ class LoginDefaultAfter extends AbstractLoginFSMExtension implements iLogoutExte
|
||||
{
|
||||
self::ResetLoginSession();
|
||||
$iOnExit = LoginWebPage::getIOnExit();
|
||||
if ($iOnExit == LoginWebPage::EXIT_RETURN)
|
||||
if ($iOnExit === LoginWebPage::EXIT_RETURN)
|
||||
{
|
||||
return LoginWebPage::LOGIN_FSM_RETURN; // Error, exit FSM
|
||||
}
|
||||
@@ -95,6 +95,12 @@ class LoginDefaultAfter extends AbstractLoginFSMExtension implements iLogoutExte
|
||||
{
|
||||
if (!Session::IsSet('login_mode'))
|
||||
{
|
||||
// N°6358 - if EXIT_RETURN was asked, send an error
|
||||
if (LoginWebPage::getIOnExit() === LoginWebPage::EXIT_RETURN) {
|
||||
$iErrorCode = LoginWebPage::EXIT_CODE_WRONGCREDENTIALS;
|
||||
return LoginWebPage::LOGIN_FSM_ERROR;
|
||||
}
|
||||
|
||||
// If no plugin validated the user, exit
|
||||
self::ResetLoginSession();
|
||||
exit();
|
||||
|
||||
Reference in New Issue
Block a user