]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1046145: It is no longer possible to cancel an email address change when this...
authorFrédéric Buclin <LpSolit@gmail.com>
Tue, 5 Aug 2014 23:44:20 +0000 (01:44 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Tue, 5 Aug 2014 23:44:20 +0000 (01:44 +0200)
r=dkl a=sgreen

token.cgi

index 62f1f51210aa5dd1b0c037f1f208d1c1418261d0..44ca46bd64874b628cc1ff53b940fce5d6ac384d 100755 (executable)
--- a/token.cgi
+++ b/token.cgi
@@ -254,7 +254,7 @@ sub cancelChangeEmail {
         # check to see if it has been altered
         if ($user->login ne $old_email) {
             $user->set_login($old_email);
-            $user->update({ keep_session => 1 });
+            $user->update({ keep_tokens => 1 });
 
             $vars->{'message'} = "email_change_canceled_reinstated";
         }