diff options
Diffstat (limited to 'createaccount.cgi')
-rwxr-xr-x | createaccount.cgi | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/createaccount.cgi b/createaccount.cgi index 29b3c00ec..1be63756d 100755 --- a/createaccount.cgi +++ b/createaccount.cgi @@ -63,7 +63,10 @@ my $login = $cgi->param('login'); if (defined($login)) { # We've been asked to create an account. my $realname = trim($cgi->param('realname')); - check_email_syntax($login); + + validate_email_syntax($login) + || ThrowUserError('illegal_email_address', {addr => $login}); + $vars->{'login'} = $login; $dbh->bz_lock_tables('profiles WRITE', 'email_setting WRITE', 'tokens READ'); |