diff options
author | plegall <plg@piwigo.org> | 2016-02-12 20:20:12 +0100 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2016-02-12 20:20:12 +0100 |
commit | fbd90fa46081cb5a7208dfff83041927f7759b9f (patch) | |
tree | 98ea2addb0c2e48742e92f9565f80d353fc5a2d1 /include/ws_functions/pwg.users.php | |
parent | 25edfc2663a0d87e6216981c44dadb52d1f8ab72 (diff) |
fixes #414, deactivate auth keys on password change
Diffstat (limited to 'include/ws_functions/pwg.users.php')
-rw-r--r-- | include/ws_functions/pwg.users.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/ws_functions/pwg.users.php b/include/ws_functions/pwg.users.php index f8fe51c2a..eaa96c9c1 100644 --- a/include/ws_functions/pwg.users.php +++ b/include/ws_functions/pwg.users.php @@ -552,6 +552,11 @@ SELECT array($conf['user_fields']['id'] => $params['user_id'][0]) ); + if (isset($updates[ $conf['user_fields']['password'] ])) + { + deactivate_user_auth_keys($params['user_id'][0]); + } + if (isset($update_status) and count($params['user_id_for_status']) > 0) { $query = ' |