Bugzilla – Attachment 83497 Details for
Bug 21992
Remove Koha::Patron::update_password
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21992: Remove use of update_password in create_superlibrarian.pl
Bug-21992-Remove-use-of-updatepassword-in-createsu.patch (text/plain), 947 bytes, created by
Tomás Cohen Arazi
on 2018-12-26 15:50:40 UTC
(
hide
)
Description:
Bug 21992: Remove use of update_password in create_superlibrarian.pl
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2018-12-26 15:50:40 UTC
Size:
947 bytes
patch
obsolete
>From 6d16ede292834273180656ca69f970c9736aba12 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 13 Dec 2018 12:34:20 -0300 >Subject: [PATCH] Bug 21992: Remove use of update_password in > create_superlibrarian.pl > >In this case we are not using $patron->set_password, because we want to >keep the current behaviour: no checks on the password quality. >--- > misc/devel/create_superlibrarian.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/misc/devel/create_superlibrarian.pl b/misc/devel/create_superlibrarian.pl >index d9789fe096..ca0eb67b41 100755 >--- a/misc/devel/create_superlibrarian.pl >+++ b/misc/devel/create_superlibrarian.pl >@@ -49,7 +49,8 @@ my $patron = Koha::Patron->new({ > flags => 1, > })->store; > >-$patron->update_password( $userid, $password ); >+my $digest = Koha::AuthUtils::hash_password($password); >+$patron->update({password => $digest,}); > > =head1 NAME > >-- >2.20.1
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 21992
:
83494
|
83495
|
83496
|
83497
|
83498
|
83499
|
83500
|
83592
|
83604