aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-09-06 12:44:12 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-09-06 12:44:12 +0200
commita52e66ebe0d98854108f366a9dc3be3790d18180 (patch)
treedb218ba970a19821db63b1616c86d70ee89cecd1 /userprefs.cgi
parentMake editusers.cgi list users properly when is_enabled is not defined. r=LpSo... (diff)
downloadbugzilla-a52e66ebe0d98854108f366a9dc3be3790d18180.tar.gz
bugzilla-a52e66ebe0d98854108f366a9dc3be3790d18180.tar.bz2
bugzilla-a52e66ebe0d98854108f366a9dc3be3790d18180.zip
Bug 1194987: Editing your email address and make it point to a non-existent email address makes Bugzilla stop working
r=gerv a=sgreen
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi3
1 files changed, 1 insertions, 2 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 71b274c01..089708d03 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -117,8 +117,7 @@ sub SaveAccount {
is_available_username($new_login_name)
|| ThrowUserError("account_exists", {email => $new_login_name});
- Bugzilla::Token::IssueEmailChangeToken($user, $new_login_name);
-
+ $vars->{'email_token'} = Bugzilla::Token::IssueEmailChangeToken($new_login_name);
$vars->{'email_changes_saved'} = 1;
}
}