summaryrefslogtreecommitdiffstats
path: root/userprefs.cgi
diff options
context:
space:
mode:
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,