summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 5466c80cc..15afdb21c 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -26,6 +26,7 @@ use strict;
use lib qw(.);
use Bugzilla;
+use Bugzilla::Constants;
require "CGI.pl";
@@ -108,8 +109,9 @@ sub SaveAccount {
SendSQL("UPDATE profiles
SET cryptpassword = $cryptedpassword
WHERE userid = $userid");
+
# Invalidate all logins except for the current one
- InvalidateLogins($userid, $cgi->cookie("Bugzilla_logincookie"));
+ Bugzilla->logout(LOGOUT_KEEP_CURRENT);
}
}