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