Bug 199813 - Make all users of ThrowUserError pass $vars in explicitly.

r=gerv
a=justdave


git-svn-id: svn://10.0.0.236/trunk@140585 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bbaetz%acm.org
2003-04-02 12:35:07 +00:00
parent 4b916bd363
commit 6ee31579fe
12 changed files with 193 additions and 118 deletions

View File

@@ -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