mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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:
parent
98f6a1a300
commit
c27214495c
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue