aboutsummaryrefslogtreecommitdiffstats
path: root/token.cgi
diff options
context:
space:
mode:
authorbbaetz%acm.org <>2003-04-02 20:35:00 +0000
committerbbaetz%acm.org <>2003-04-02 20:35:00 +0000
commitb259c4b4252cde8e7926690f6ba419d2ee7c59fc (patch)
treeae51804f9db83c0b1a49f79b9e0a1848cdd5e7c7 /token.cgi
parent747eb2ddd7febfa0e33ccf3797bf48db0defafcc (diff)
downloadbugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.tar
bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.tar.gz
bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.tar.bz2
bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.tar.xz
bugs-b259c4b4252cde8e7926690f6ba419d2ee7c59fc.zip
Bug 199813 - Make all users of ThrowUserError pass $vars in explicitly.
r=gerv a=justdave
Diffstat (limited to 'token.cgi')
-rwxr-xr-xtoken.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/token.cgi b/token.cgi
index 5da824bae..afe6d0361 100755
--- a/token.cgi
+++ b/token.cgi
@@ -231,9 +231,9 @@ sub changeEmail {
# The new email address should be available as this was
# confirmed initially so cancel token if it is not still available
if (! ValidateNewUser($new_email,$old_email)) {
- $vars->{'email'} = $new_email;
+ $vars->{'email'} = $new_email; # Needed for Token::Cancel's mail
Token::Cancel($::token,"account_exists");
- ThrowUserError("account_exists");
+ ThrowUserError("account_exists", { email => $new_email } );
}
# Update the user's login name in the profiles table and delete the token