summaryrefslogtreecommitdiffstats
path: root/checksetup.pl
diff options
context:
space:
mode:
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-xchecksetup.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/checksetup.pl b/checksetup.pl
index c0b206bed..7f3c6783f 100755
--- a/checksetup.pl
+++ b/checksetup.pl
@@ -326,7 +326,6 @@ import Bugzilla::Util qw(bz_crypt trim html_quote is_7bit_clean
clean_text url_quote);
require Bugzilla::User;
-import Bugzilla::User qw(insert_new_user);
require Bugzilla::Bug;
import Bugzilla::Bug qw(is_open_state);
@@ -756,7 +755,10 @@ if ($sth->rows == 0) {
$SIG{QUIT} = 'DEFAULT';
$SIG{TERM} = 'DEFAULT';
- insert_new_user($login, $realname, $pass1);
+ Bugzilla::User->create({
+ login_name => $login,
+ realname => $realname,
+ cryptpassword => $pass1});
}
# Put the admin in each group if not already