N°4095 - Provisions for future implementation of users password

expiration.
This commit is contained in:
denis.flaven@combodo.com
2021-08-09 17:12:34 +02:00
parent 5926e9d110
commit 99d0c05c1c
6 changed files with 46 additions and 12 deletions

View File

@@ -1094,9 +1094,13 @@ class LoginWebPage extends NiceWebPage
if (isset($_SESSION['auth_user']))
{
$sAuthUser = $_SESSION['auth_user'];
$sIssue = $_SESSION['pwd_issue'] ?? null;
unset($_SESSION['pwd_issue']);
$bFailedLogin = ($sIssue != null); // Force the "failed login" flag to display the "issue" message
UserRights::Login($sAuthUser); // Set the user's language
$oPage = self::NewLoginWebPage();
$oPage->DisplayChangePwdForm();
$oPage->DisplayChangePwdForm($bFailedLogin, $sIssue);
$oPage->output();
exit;
}