Bug 22048: Use set_password in create_superlibrarian.pl
[koha.git] / misc / devel / create_superlibrarian.pl
index d9789fe..f17b1f5 100755 (executable)
@@ -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