aboutsummaryrefslogtreecommitdiffstats
path: root/createaccount.cgi
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-09 14:42:41 +0000
committertravis%sedsystems.ca <>2005-02-09 14:42:41 +0000
commite564c92b745326a96a74f03eebb4dfd738de03cf (patch)
tree3bbdf20d22ff34ea02bc5ca63366ac39fd5fca33 /createaccount.cgi
parentf8aeecaf8cd33d87315c5a50be9a762e142062a4 (diff)
downloadbugs-e564c92b745326a96a74f03eebb4dfd738de03cf.tar
bugs-e564c92b745326a96a74f03eebb4dfd738de03cf.tar.gz
bugs-e564c92b745326a96a74f03eebb4dfd738de03cf.tar.bz2
bugs-e564c92b745326a96a74f03eebb4dfd738de03cf.tar.xz
bugs-e564c92b745326a96a74f03eebb4dfd738de03cf.zip
Bug 280994 : Move ValidateNewUser out of globals.pl
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=vladd a=justdave
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi4
1 files changed, 2 insertions, 2 deletions
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());