diff options
author | lpsolit%gmail.com <> | 2005-08-16 00:43:35 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-16 00:43:35 +0000 |
commit | 746013729e6377357efb68de8d7f2fd93e25a07c (patch) | |
tree | 1aabd9f01c7cf495ee677b23b5452abbeed96228 /createaccount.cgi | |
parent | Bug 303413: Remove "use Bugzilla" from all of the pm files. All of the cgi f... (diff) | |
download | bugzilla-746013729e6377357efb68de8d7f2fd93e25a07c.tar.gz bugzilla-746013729e6377357efb68de8d7f2fd93e25a07c.tar.bz2 bugzilla-746013729e6377357efb68de8d7f2fd93e25a07c.zip |
Bug 304653: remove 'use Bugzilla::Error' from Util.pm - Patch by Frédéric Buclin <LpSolit@gmail.com> r=mkanat a=myk
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'); |