diff options
author | bbaetz%acm.org <> | 2003-06-07 12:36:43 +0200 |
---|---|---|
committer | bbaetz%acm.org <> | 2003-06-07 12:36:43 +0200 |
commit | f32800e0c6b377a253c01454ce6b1b6a9b45eeb8 (patch) | |
tree | b1903ac2c0d63b253d682d20887426a14ca741bb | |
parent | 1d057f02b277d29ad4d232d598c49b0344798b40 (diff) | |
download | bugzilla-f32800e0c6b377a253c01454ce6b1b6a9b45eeb8.tar.gz bugzilla-f32800e0c6b377a253c01454ce6b1b6a9b45eeb8.tar.xz |
Bug 205463 - Tokens aren't canceled after a successful login.
patch by 'Randall M! Gee', r=bbaetz, a=justdave
-rw-r--r-- | Bugzilla/Auth/DB.pm | 2 | ||||
-rw-r--r-- | Bugzilla/Token.pm | 2 | ||||
-rw-r--r-- | Token.pm | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/Auth/DB.pm b/Bugzilla/Auth/DB.pm index 55e4bc7c0..ffc49fbf7 100644 --- a/Bugzilla/Auth/DB.pm +++ b/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/Bugzilla/Token.pm b/Bugzilla/Token.pm index 97d2da41d..400d7d4fc 100644 --- a/Bugzilla/Token.pm +++ b/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); } } @@ -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); } } |