From c8ab594af927f6341d9b64f368f7587beedefc85 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 13 Dec 2018 12:34:20 -0300 Subject: [PATCH] Bug 22048: Use set_password in create_superlibrarian.pl Use $patron->set_password instead of update_password. In this case the 'skip_validation' param needs to be set as no password strength checks are expected. --- misc/devel/create_superlibrarian.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/devel/create_superlibrarian.pl b/misc/devel/create_superlibrarian.pl index d9789fe096..f17b1f5c59 100755 --- a/misc/devel/create_superlibrarian.pl +++ b/misc/devel/create_superlibrarian.pl @@ -49,7 +49,7 @@ my $patron = Koha::Patron->new({ flags => 1, })->store; -$patron->update_password( $userid, $password ); +$patron->set_password({ password => $password, skip_validation => 1 }); =head1 NAME -- 2.20.1