From e4d8d5cab2c56c680e1b025ca362d415db216e46 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 --- 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 d9789fe..f17b1f5 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.1.4