diff options
author | lpsolit%gmail.com <> | 2005-08-16 02:43:35 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-08-16 02:43:35 +0200 |
commit | 746013729e6377357efb68de8d7f2fd93e25a07c (patch) | |
tree | 1aabd9f01c7cf495ee677b23b5452abbeed96228 /editusers.cgi | |
parent | 09756eda41e62f1b216c38338c6d0702dccc7502 (diff) | |
download | bugzilla-746013729e6377357efb68de8d7f2fd93e25a07c.tar.gz bugzilla-746013729e6377357efb68de8d7f2fd93e25a07c.tar.xz |
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 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/editusers.cgi b/editusers.cgi index bada71af7..56c0a7635 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -169,9 +169,10 @@ if ($action eq 'search') { # Validity checks $login || ThrowUserError('user_login_required'); - check_email_syntax($login); - is_available_username($login) || ThrowUserError('account_exists', - {'email' => $login}); + validate_email_syntax($login) + || ThrowUserError('illegal_email_address', {addr => $login}); + is_available_username($login) + || ThrowUserError('account_exists', {email => $login}); ValidatePassword($password); # Login and password are validated now, and realname and disabledtext @@ -245,9 +246,11 @@ if ($action eq 'search') { if ($login ne $loginold) { # Validate, then trick_taint. $login || ThrowUserError('user_login_required'); - check_email_syntax($login); - is_available_username($login) || ThrowUserError('account_exists', - {'email' => $login}); + validate_email_syntax($login) + || ThrowUserError('illegal_email_address', {addr => $login}); + is_available_username($login) + || ThrowUserError('account_exists', {email => $login}); + trick_taint($login); push(@changedFields, 'login_name'); push(@values, $login); |