mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +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:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user