From aefd2bc2f643834a29b387bafbadefb1a5eb253d 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. Signed-off-by: Kyle M Hall Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens --- 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.39.5