1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[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

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();