Bugzilla – Attachment 83496 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: Use set_password in memberentry.pl
Bug-21992-Use-setpassword-in-memberentrypl.patch (text/plain), 1.30 KB, created by
Tomás Cohen Arazi
on 2018-12-26 15:50:37 UTC
(
hide
)
Description:
Bug 21992: Use set_password in memberentry.pl
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi
Created:
2018-12-26 15:50:37 UTC
Size:
1.30 KB
patch
obsolete
>From ad1852504d3af4492faaf07d49d419acd093bce5 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 13 Dec 2018 12:21:02 -0300 >Subject: [PATCH] Bug 21992: Use set_password in memberentry.pl > >To test: >- Verify that changing the password and userid of a patron by globally >editing they works, >--- > members/memberentry.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 731d4f9c56..6f37ba91e4 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -536,7 +536,8 @@ if ((!$nok) and $nodouble and ($op eq 'insert' or $op eq 'save')){ > # which can happen if we're only editing the > # patron attributes or messaging preferences sections > >- $patron->update_password($newdata{userid}, $newdata{password}); >+ # should never raise an exception as password validity is checked above >+ $patron->set_password( $newdata{password} ); > > if (C4::Context->preference('ExtendedPatronAttributes') and $input->param('setting_extended_patron_attributes')) { > C4::Members::Attributes::SetBorrowerAttributes($borrowernumber, $extended_patron_attributes); >-- >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