Commit 8222ed65 authored by Reed Loden's avatar Reed Loden

Bug 1061247 - Successfully using a password change token should invalidate all…

Bug 1061247 - Successfully using a password change token should invalidate all other password change tokens for that user r=gerv a=glob
parent f5a7c7d2
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment