Bugzilla – Attachment 83603 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 Auth_with_ldap.pm
Bug-22048-Use-setpassword-in-Authwithldappm.patch (text/plain), 1.03 KB, created by
Josef Moravec
on 2019-01-02 20:34:59 UTC
(
hide
)
Description:
Bug 22048: Use set_password in Auth_with_ldap.pm
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-01-02 20:34:59 UTC
Size:
1.03 KB
patch
obsolete
>From 70cbdc28e3453d626e88155b56845c1aa103e9ce Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 26 Dec 2018 13:19:05 -0300 >Subject: [PATCH] Bug 22048: Use set_password in Auth_with_ldap.pm > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > C4/Auth_with_ldap.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm >index b5876a0..d9841a8 100644 >--- a/C4/Auth_with_ldap.pm >+++ b/C4/Auth_with_ldap.pm >@@ -346,7 +346,7 @@ sub _do_changepassword { > > my $digest = hash_password($password); > $debug and print STDERR "changing local password for borrowernumber=$borrowerid to '$digest'\n"; >- Koha::Patrons->find($borrowerid)->update_password( $userid, $password ); >+ Koha::Patrons->find($borrowerid)->set_password({ password => $password, skip_validation => 1 }); > > my ($ok, $cardnum) = checkpw_internal(C4::Context->dbh, $userid, $password); > return $cardnum if $ok; >-- >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