Signed-off-by: John Doe <you@example.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
pod2usage("categorycode is mandatory") unless $categorycode;
pod2usage("cardnumber is mandatory") unless $cardnumber;
-Koha::Patron->new({
+my $patron = Koha::Patron->new({
surname => $surname,
userid => $userid,
cardnumber => $cardnumber,
flags => 1,
})->store;
+my $digest = Koha::AuthUtils::hash_password($password);
+$patron->update({password => $digest,});
+
=head1 NAME
create_superlibrarian.pl - create a user in Koha with superlibrarian permissions