[ticket/17127] Remove redundant check for changed password

user_password will have been updated if u_chgpasswd is yes and new password
has been set, no need to check password against old hash again.

PHPBB3-17127
This commit is contained in:
Marc Alexander 2023-04-10 19:39:23 +02:00
parent 98f6a1a300
commit c27214495c
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -143,7 +143,7 @@ class ucp_profile
)); ));
} }
if ($auth->acl_get('u_chgpasswd') && $data['new_password'] && !$passwords_manager->check($data['new_password'], $user->data['user_password'])) if ($auth->acl_get('u_chgpasswd') && $data['new_password'])
{ {
$sql_ary['user_passchg'] = time(); $sql_ary['user_passchg'] = time();