summaryrefslogtreecommitdiffstats
path: root/token.cgi
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-03-17 17:33:52 +0100
committerByron Jones <glob@mozilla.com>2014-03-17 17:33:52 +0100
commit013e8740fef579fa7ec6271d39224d91d509bd88 (patch)
tree1eb869cbafc32193cf5b3346e321985b40555382 /token.cgi
parentfa99f05b2e7074e88efea8a0fb4f0c51de77b3e1 (diff)
downloadbugzilla-013e8740fef579fa7ec6271d39224d91d509bd88.tar.gz
bugzilla-013e8740fef579fa7ec6271d39224d91d509bd88.tar.xz
Bug 983549: changes to the profiles table in token.cgi are not clearing memcached entries
Diffstat (limited to 'token.cgi')
-rwxr-xr-xtoken.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/token.cgi b/token.cgi
index 901094be4..ce8ef1d94 100755
--- a/token.cgi
+++ b/token.cgi
@@ -226,6 +226,7 @@ sub changePassword {
SET cryptpassword = ?
WHERE userid = ?},
undef, ($cryptedpassword, $userid) );
+ Bugzilla->memcached->clear({ table => 'profiles', id => $userid });
$dbh->do('DELETE FROM tokens WHERE token = ?', undef, $token);
$dbh->bz_commit_transaction();
@@ -276,6 +277,7 @@ sub changeEmail {
SET login_name = ?
WHERE userid = ?},
undef, ($new_email, $userid));
+ Bugzilla->memcached->clear({ table => 'profiles', id => $userid });
$dbh->do('DELETE FROM tokens WHERE token = ?', undef, $token);
$dbh->do(q{DELETE FROM tokens WHERE userid = ?
AND tokentype = 'emailnew'}, undef, $userid);
@@ -325,6 +327,7 @@ sub cancelChangeEmail {
SET login_name = ?
WHERE userid = ?},
undef, ($old_email, $userid));
+ Bugzilla->memcached->clear({ table => 'profiles', id => $userid });
# email has changed, so rederive groups