aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortravis%sedsystems.ca <>2005-02-09 14:42:41 +0000
committertravis%sedsystems.ca <>2005-02-09 14:42:41 +0000
commite564c92b745326a96a74f03eebb4dfd738de03cf (patch)
tree3bbdf20d22ff34ea02bc5ca63366ac39fd5fca33 /userprefs.cgi
parentBug 257315 : type of delta_ts in bugs table should not be timestamp (diff)
downloadbugzilla-e564c92b745326a96a74f03eebb4dfd738de03cf.tar.gz
bugzilla-e564c92b745326a96a74f03eebb4dfd738de03cf.tar.bz2
bugzilla-e564c92b745326a96a74f03eebb4dfd738de03cf.zip
Bug 280994 : Move ValidateNewUser out of globals.pl
Patch by Max Kanat-Alexander <mkanat@kerio.com> r=vladd a=justdave
Diffstat (limited to 'userprefs.cgi')
-rwxr-xr-xuserprefs.cgi3
1 files changed, 2 insertions, 1 deletions
diff --git a/userprefs.cgi b/userprefs.cgi
index 6950fea88..f62f02500 100755
--- a/userprefs.cgi
+++ b/userprefs.cgi
@@ -29,6 +29,7 @@ use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Search;
use Bugzilla::Auth;
+use Bugzilla::User;
require "CGI.pl";
@@ -122,7 +123,7 @@ sub SaveAccount {
# Before changing an email address, confirm one does not exist.
CheckEmailSyntax($new_login_name);
trick_taint($new_login_name);
- ValidateNewUser($new_login_name)
+ is_available_username($new_login_name)
|| ThrowUserError("account_exists", {email => $new_login_name});
Bugzilla::Token::IssueEmailChangeToken($userid,$old_login_name,