mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-26 11:19:55 +03:00
fixes #1275 delete password reset key when email address is changed
This commit is contained in:
parent
498fb5e85d
commit
7d7943b3ed
4 changed files with 30 additions and 9 deletions
10
password.php
10
password.php
|
@ -238,15 +238,7 @@ function reset_password()
|
|||
array($conf['user_fields']['id'] => $user_id)
|
||||
);
|
||||
|
||||
single_update(
|
||||
USER_INFOS_TABLE,
|
||||
array(
|
||||
'activation_key' => null,
|
||||
'activation_key_expire' => null,
|
||||
),
|
||||
array('user_id' => $user_id)
|
||||
);
|
||||
|
||||
deactivate_password_reset_key($user_id);
|
||||
deactivate_user_auth_keys($user_id);
|
||||
|
||||
$page['infos'][] = l10n('Your password has been reset');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue