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 --- createaccount.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'createaccount.cgi') diff --git a/createaccount.cgi b/createaccount.cgi index 6867ea3c4..60a180623 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -30,7 +30,7 @@ use lib qw(.); require "CGI.pl"; -use Bugzilla::User qw(insert_new_user); +use Bugzilla::User; # Shut up misguided -w warnings about "used only once": use vars qw( @@ -61,7 +61,7 @@ if (defined($login)) { CheckEmailSyntax($login); $vars->{'login'} = $login; - if (!ValidateNewUser($login)) { + if (!is_available_username($login)) { # Account already exists $template->process("account/exists.html.tmpl", $vars) || ThrowTemplateError($template->error()); -- cgit v1.2.3-24-g4f1b