From 6d16ede292834273180656ca69f970c9736aba12 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 13 Dec 2018 12:34:20 -0300 Subject: [PATCH] Bug 21992: Remove use of update_password in create_superlibrarian.pl In this case we are not using $patron->set_password, because we want to keep the current behaviour: no checks on the password quality. --- misc/devel/create_superlibrarian.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc/devel/create_superlibrarian.pl b/misc/devel/create_superlibrarian.pl index d9789fe096..ca0eb67b41 100755 --- a/misc/devel/create_superlibrarian.pl +++ b/misc/devel/create_superlibrarian.pl @@ -49,7 +49,8 @@ my $patron = Koha::Patron->new({ flags => 1, })->store; -$patron->update_password( $userid, $password ); +my $digest = Koha::AuthUtils::hash_password($password); +$patron->update({password => $digest,}); =head1 NAME -- 2.20.1