Bug 21087: (QA follow-up) Fix usage in create_superlibrarian.pl
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Jul 2018 01:51:32 +0000 (22:51 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Jul 2018 01:51:32 +0000 (22:51 -0300)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

misc/devel/create_superlibrarian.pl

index 938d34e..d9789fe 100755 (executable)
@@ -46,12 +46,10 @@ my $patron = Koha::Patron->new({
     cardnumber   => $cardnumber,
     branchcode   => $branchcode,
     categorycode => $categorycode,
-    password     => $password,
     flags        => 1,
 })->store;
 
-my $digest = Koha::AuthUtils::hash_password($password);
-$patron->update({password => $digest,});
+$patron->update_password( $userid, $password );
 
 =head1 NAME