From dec983ec1b12de0e95aa0d64fc6e32a9d5b3fece Mon Sep 17 00:00:00 2001
From: Tomas Cohen Arazi <tomascohen@theke.io>
Date: Mon, 30 Jul 2018 22:51:32 -0300
Subject: [PATCH] Bug 21087: (QA follow-up) Fix usage in
 create_superlibrarian.pl

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
---
 misc/devel/create_superlibrarian.pl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/misc/devel/create_superlibrarian.pl b/misc/devel/create_superlibrarian.pl
index 938d34ea13..d9789fe096 100755
--- a/misc/devel/create_superlibrarian.pl
+++ b/misc/devel/create_superlibrarian.pl
@@ -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
 
-- 
2.18.0