diff options
author | mkanat%bugzilla.org <> | 2006-08-26 05:10:38 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2006-08-26 05:10:38 +0000 |
commit | 3120e71d44a272228c0393bfe8be3d4653f2cd82 (patch) | |
tree | a867f3d272e48f1aec5dbbef3d530e5f4cd80ae7 /createaccount.cgi | |
parent | 3f868ed5858dec2b8523c2997c2ebbb2f379cc7a (diff) | |
download | bugs-3120e71d44a272228c0393bfe8be3d4653f2cd82.tar bugs-3120e71d44a272228c0393bfe8be3d4653f2cd82.tar.gz bugs-3120e71d44a272228c0393bfe8be3d4653f2cd82.tar.bz2 bugs-3120e71d44a272228c0393bfe8be3d4653f2cd82.tar.xz bugs-3120e71d44a272228c0393bfe8be3d4653f2cd82.zip |
Bug 349349: Use ->create from Bugzilla::Object instead of insert_new_user for Bugzilla::User
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-x | createaccount.cgi | 11 |
1 files changed, 1 insertions, 10 deletions
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"); } |