n°524 - password policy

- ajax message is now translated in the user's language
 - prevent the form submission if the password policy is not respected
This commit is contained in:
bruno DA SILVA
2020-01-06 18:33:47 +01:00
parent f3fd4bde87
commit 69551378c2
2 changed files with 5 additions and 0 deletions

View File

@@ -1064,6 +1064,9 @@ class LoginWebPage extends NiceWebPage
}
else if ($operation == 'check_pwd_policy')
{
$sAuthUser = $_SESSION['auth_user'];
UserRights::Login($sAuthUser); // Set the user's language
$aPwdMap = array();
foreach (array('new_pwd', 'retype_new_pwd') as $postedPwd)