diff options
author | 2006-08-26 05:10:38 +0000 | |
---|---|---|
committer | 2006-08-26 05:10:38 +0000 | |
commit | 3120e71d44a272228c0393bfe8be3d4653f2cd82 (patch) | |
tree | a867f3d272e48f1aec5dbbef3d530e5f4cd80ae7 /checksetup.pl | |
parent | Bug 347864: Generally improve fulltext search (diff) | |
download | bugzilla-3120e71d44a272228c0393bfe8be3d4653f2cd82.tar.gz bugzilla-3120e71d44a272228c0393bfe8be3d4653f2cd82.tar.bz2 bugzilla-3120e71d44a272228c0393bfe8be3d4653f2cd82.zip |
Bug 349349: Use ->create from Bugzilla::Object instead of insert_new_user for Bugzilla::User
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=myk
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 6 |
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 |