summaryrefslogtreecommitdiffstats
path: root/token.cgi
diff options
context:
space:
mode:
authorkiko%async.com.br <>2004-03-27 10:28:29 +0100
committerkiko%async.com.br <>2004-03-27 10:28:29 +0100
commit8a06f991edf359f9ffeb53cc57173023c44d9644 (patch)
tree2e5196831333da56330b1a5c00c9165991a0ac78 /token.cgi
parenta66d86a8e68f82de2d17d086204f538238ce0727 (diff)
downloadbugzilla-8a06f991edf359f9ffeb53cc57173023c44d9644.tar.gz
bugzilla-8a06f991edf359f9ffeb53cc57173023c44d9644.tar.xz
Fix for bug 226764: Move InvalidateLogins into Bugzilla::Auth::CGI.
Consolidates the logout code into Bugzilla::Auth::CGI, and provides simple front-end wrappers in Bugzilla.pm for use in the CGIs we have. r=bbaetz, joel; a=justdave. Adds a set of constants to the logout() API which allow specifying "how much" we should log out -- all sessions, the current session, or all sessions but the current one. Fixes callsites to use this new API; cleans and documents things a bit while we're at it. Part I in the great COOKIE apocalypse.
Diffstat (limited to 'token.cgi')
-rwxr-xr-xtoken.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/token.cgi b/token.cgi
index c29749551..697da39b1 100755
--- a/token.cgi
+++ b/token.cgi
@@ -201,7 +201,7 @@ sub changePassword {
SendSQL("DELETE FROM tokens WHERE token = $::quotedtoken");
SendSQL("UNLOCK TABLES");
- InvalidateLogins($userid);
+ Bugzilla->logout_user_by_id($userid);
$vars->{'message'} = "password_changed";