Bugzilla – Attachment 83587 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 memberentry.pl
Bug-22048-Use-setpassword-in-memberentrypl.patch (text/plain), 1.38 KB, created by
Kyle M Hall
on 2019-01-02 14:02:31 UTC
(
hide
)
Description:
Bug 22048: Use set_password in memberentry.pl
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2019-01-02 14:02:31 UTC
Size:
1.38 KB
patch
obsolete
>From d91428de64c31466ef8d7039ea1c27ae48d9a732 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 22048: Use set_password in memberentry.pl > >To test: >- Verify that changing the password and userid of a patron by globally >editing they works, > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > members/memberentry.pl | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/members/memberentry.pl b/members/memberentry.pl >index 600eff98a9..036c27e186 100755 >--- a/members/memberentry.pl >+++ b/members/memberentry.pl >@@ -535,7 +535,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({ password => $newdata{password} }); > > if (C4::Context->preference('ExtendedPatronAttributes') and $input->param('setting_extended_patron_attributes')) { > C4::Members::Attributes::SetBorrowerAttributes($borrowernumber, $extended_patron_attributes); >-- >2.17.2 (Apple Git-113)
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