From 3120e71d44a272228c0393bfe8be3d4653f2cd82 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 26 Aug 2006 05:10:38 +0000 Subject: Bug 349349: Use ->create from Bugzilla::Object instead of insert_new_user for Bugzilla::User Patch By Max Kanat-Alexander r=LpSolit, a=myk --- checksetup.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'checksetup.pl') 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 -- cgit v1.2.3-24-g4f1b