Commit eab0867f 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 fa1698c5
......@@ -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);
......
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