From: Tomas Cohen Arazi Date: Thu, 13 Dec 2018 15:34:20 +0000 (-0300) Subject: Bug 22048: Use set_password in create_superlibrarian.pl X-Git-Tag: v19.05.00~1393 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=aefd2bc2f643834a29b387bafbadefb1a5eb253d;p=srvgit 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 --- 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