mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-07 02:11:26 +02:00
fixes #1275 delete password reset key when email address is changed
This commit is contained in:
@@ -555,6 +555,11 @@ SELECT
|
||||
deactivate_user_auth_keys($params['user_id'][0]);
|
||||
}
|
||||
|
||||
if (isset($updates[ $conf['user_fields']['email'] ]))
|
||||
{
|
||||
deactivate_password_reset_key($params['user_id'][0]);
|
||||
}
|
||||
|
||||
if (isset($update_status) and count($params['user_id_for_status']) > 0)
|
||||
{
|
||||
$query = '
|
||||
|
||||
Reference in New Issue
Block a user