diff options
author | Reed Loden <reed@reedloden.com> | 2014-10-01 07:32:15 +0200 |
---|---|---|
committer | Reed Loden <reed@reedloden.com> | 2014-10-01 07:32:15 +0200 |
commit | 8222ed65c30f308adc92f2da19e746cb7b22eba2 (patch) | |
tree | d33ccecf0ace25cc22d272f23afa9c1e635887ed | |
parent | f5a7c7d2472f5a4940343785ab9619247f8895a5 (diff) | |
download | bugzilla-8222ed65c30f308adc92f2da19e746cb7b22eba2.tar.gz bugzilla-8222ed65c30f308adc92f2da19e746cb7b22eba2.tar.xz |
Bug 1061247 - Successfully using a password change token should invalidate all other password change tokens for that user
r=gerv a=glob
-rwxr-xr-x | token.cgi | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -180,6 +180,8 @@ sub changePassword { $user->set_password($password); $user->update(); delete_token($token); + $dbh->do(q{DELETE FROM tokens WHERE userid = ? + AND tokentype = 'password'}, undef, $user_id); Bugzilla->logout_user_by_id($user_id); |