aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2014-09-30 22:32:15 -0700
committerReed Loden <reed@reedloden.com>2014-09-30 22:32:15 -0700
commit8222ed65c30f308adc92f2da19e746cb7b22eba2 (patch)
treed33ccecf0ace25cc22d272f23afa9c1e635887ed
parentBug 1070317 - Bugzilla::Flag's attribute modification_date is affected by the... (diff)
downloadbugzilla-8222ed65c30f308adc92f2da19e746cb7b22eba2.tar.gz
bugzilla-8222ed65c30f308adc92f2da19e746cb7b22eba2.tar.bz2
bugzilla-8222ed65c30f308adc92f2da19e746cb7b22eba2.zip
Bug 1061247 - Successfully using a password change token should invalidate all other password change tokens for that user
r=gerv a=glob
-rwxr-xr-xtoken.cgi2
1 files changed, 2 insertions, 0 deletions
diff --git a/token.cgi b/token.cgi
index 13e54b695..ddfdc159b 100755
--- a/token.cgi
+++ b/token.cgi
@@ -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);