Bugzilla – Attachment 77273 Details for
Bug 21087
Patron's password is hashed twice when the object is saved
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21087: Fix create_superlibrarian.pl script
Bug-21087-Fix-createsuperlibrarianpl-script.patch (text/plain), 1.15 KB, created by
Jonathan Druart
on 2018-07-25 22:09:19 UTC
(
hide
)
Description:
Bug 21087: Fix create_superlibrarian.pl script
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-25 22:09:19 UTC
Size:
1.15 KB
patch
obsolete
>From 3b547f5733e4e9a0557d23164db16cfa3ba16835 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 25 Jul 2018 19:09:01 -0300 >Subject: [PATCH] Bug 21087: Fix create_superlibrarian.pl script > >--- > misc/devel/create_superlibrarian.pl | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/misc/devel/create_superlibrarian.pl b/misc/devel/create_superlibrarian.pl >index 89b738783f..938d34ea13 100755 >--- a/misc/devel/create_superlibrarian.pl >+++ b/misc/devel/create_superlibrarian.pl >@@ -40,7 +40,7 @@ pod2usage("branchcode is mandatory") unless $branchcode; > 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, >@@ -50,6 +50,9 @@ Koha::Patron->new({ > 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 >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21087
:
77095
|
77096
|
77200
|
77201
|
77254
|
77255
|
77273
|
77284
|
77285
|
77286
|
77287
|
77288
|
77327