diff --git a/mozilla/webtools/bugzilla/Bugzilla/Auth/DB.pm b/mozilla/webtools/bugzilla/Bugzilla/Auth/DB.pm index 55e4bc7c020..ffc49fbf71e 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Auth/DB.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Auth/DB.pm @@ -71,7 +71,7 @@ sub authenticate { # Now we know that the user has logged in successfully, # so delete any password tokens for them require Token; - Token::DeletePasswordTokens("user logged in"); + Token::DeletePasswordTokens($userid, "user_logged_in"); # The user may have had their account disabled return (AUTH_DISABLED, $userid, $disabledtext) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Token.pm b/mozilla/webtools/bugzilla/Bugzilla/Token.pm index 97d2da41d93..400d7d4fc09 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Token.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/Token.pm @@ -246,7 +246,7 @@ sub DeletePasswordTokens { "WHERE userid=? AND tokentype='password'"); $sth->execute($userid); while (my $token = $sth->fetchrow_array) { - Token::Cancel($token, "user_logged_in"); + Token::Cancel($token, $reason); } } diff --git a/mozilla/webtools/bugzilla/Token.pm b/mozilla/webtools/bugzilla/Token.pm index 97d2da41d93..400d7d4fc09 100644 --- a/mozilla/webtools/bugzilla/Token.pm +++ b/mozilla/webtools/bugzilla/Token.pm @@ -246,7 +246,7 @@ sub DeletePasswordTokens { "WHERE userid=? AND tokentype='password'"); $sth->execute($userid); while (my $token = $sth->fetchrow_array) { - Token::Cancel($token, "user_logged_in"); + Token::Cancel($token, $reason); } }