Bugzilla – Attachment 83600 Details for
Bug 22048
Use set_password instead of update_password in the codebase
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22048: Use set_password in create_superlibrarian.pl
Bug-22048-Use-setpassword-in-createsuperlibrarianp.patch (text/plain), 1.01 KB, created by
Josef Moravec
on 2019-01-02 20:34:47 UTC
(
hide
)
Description:
Bug 22048: Use set_password in create_superlibrarian.pl
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-01-02 20:34:47 UTC
Size:
1.01 KB
patch
obsolete
>From e4d8d5cab2c56c680e1b025ca362d415db216e46 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 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 <kyle@bywatersolutions.com> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > misc/devel/create_superlibrarian.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/misc/devel/create_superlibrarian.pl b/misc/devel/create_superlibrarian.pl >index d9789fe..f17b1f5 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 > >-- >2.1.4
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 22048
:
83501
|
83502
|
83503
|
83504
|
83505
|
83506
|
83507
|
83585
|
83586
|
83587
|
83588
|
83589
|
83590
|
83591
|
83597
|
83598
|
83599
| 83600 |
83601
|
83602
|
83603