From e564c92b745326a96a74f03eebb4dfd738de03cf Mon Sep 17 00:00:00 2001 From: "travis%sedsystems.ca" <> Date: Wed, 9 Feb 2005 14:42:41 +0000 Subject: Bug 280994 : Move ValidateNewUser out of globals.pl Patch by Max Kanat-Alexander r=vladd a=justdave --- token.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'token.cgi') diff --git a/token.cgi b/token.cgi index 8b4636a79..bf810834f 100755 --- a/token.cgi +++ b/token.cgi @@ -243,7 +243,7 @@ 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)) { + if (! is_available_username($new_email,$old_email)) { $vars->{'email'} = $new_email; # Needed for Bugzilla::Token::Cancel's mail Bugzilla::Token::Cancel($::token,"account_exists"); ThrowUserError("account_exists", { email => $new_email } ); -- cgit v1.2.3-24-g4f1b