summaryrefslogtreecommitdiffstats
path: root/createaccount.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-xcreateaccount.cgi11
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");
}