From 3120e71d44a272228c0393bfe8be3d4653f2cd82 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 26 Aug 2006 05:10:38 +0000 Subject: Bug 349349: Use ->create from Bugzilla::Object instead of insert_new_user for Bugzilla::User Patch By Max Kanat-Alexander r=LpSolit, a=myk --- createaccount.cgi | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'createaccount.cgi') diff --git a/createaccount.cgi b/createaccount.cgi index 6f325347e..f58b8402b 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -60,18 +60,9 @@ unless ($createexp) { my $login = $cgi->param('login'); if (defined($login)) { - validate_email_syntax($login) - || ThrowUserError('illegal_email_address', {addr => $login}); - + $login = Bugzilla::User::check_login_name_for_creation($login); $vars->{'login'} = $login; - if (!is_available_username($login)) { - # Account already exists - $template->process("account/exists.html.tmpl", $vars) - || ThrowTemplateError($template->error()); - exit; - } - if ($login !~ /$createexp/) { ThrowUserError("account_creation_disabled"); } -- cgit v1.2.1