1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-27 03:31:47 +01:00

Login flow consistency: Do not use redirect in admin area login box

The non-admin login flow does not perform a redirect, but the admin
login flow did. This led to an inconsistency in how the authentication
error message was passed.

Fixes: https://github.com/e107inc/e107/issues/4779
This commit is contained in:
Nick Liu
2022-09-07 12:32:02 -05:00
parent b95712578a
commit 00b1d754b0
3 changed files with 23 additions and 25 deletions

View File

@@ -646,7 +646,7 @@ class userlogin
$this->logNote('LAN_ROLL_LOG_10', $username);
}
e107::getMessage()->reset()->addError($message, 'default', true); // prevent duplicates, session=true needed for admin-area login.
e107::getMessage()->reset()->addError($message); // prevent duplicates
if($this->testMode === true)
{