fixed password length check in user update for admin user

This commit is contained in:
alejandro-campos 2020-05-19 15:58:41 +02:00
parent 297672ec48
commit 706738d801
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ if ($update_user) {
$password_confirm = (string) get_parameter('password_confirm', '');
if ($password_new != '') {
if ($password_confirm == $password_new) {
if ((!$values['is_admin'] || $config['enable_pass_policy_admin']) && $config['enable_pass_policy']) {
if ((!is_user_admin($config['id_user']) || $config['enable_pass_policy_admin']) && $config['enable_pass_policy']) {
$pass_ok = login_validate_pass($password_new, $id, true);
if ($pass_ok != 1) {
ui_print_error_message($pass_ok);