Bugzilla – Attachment 84489 Details for
Bug 22061
Add route to change patron's password (public)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22061: (follow-up) set_password expects a hashref
Bug-22061-follow-up-setpassword-expects-a-hashref.patch (text/plain), 1.46 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-01-28 15:45:18 UTC
(
hide
)
Description:
Bug 22061: (follow-up) set_password expects a hashref
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-01-28 15:45:18 UTC
Size:
1.46 KB
patch
obsolete
>From 084c938f03d5936fceefbf3e515a0ff1fb02b844 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 28 Jan 2019 12:45:03 -0300 >Subject: [PATCH] Bug 22061: (follow-up) set_password expects a hashref > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > Koha/REST/V1/Patrons/Password.pm | 2 +- > t/db_dependent/api/v1/patrons_password.t | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/REST/V1/Patrons/Password.pm b/Koha/REST/V1/Patrons/Password.pm >index 08103bedbf..e9d42d7fcb 100644 >--- a/Koha/REST/V1/Patrons/Password.pm >+++ b/Koha/REST/V1/Patrons/Password.pm >@@ -121,7 +121,7 @@ sub set_public { > } > > ## Change password >- $user->set_password($password); >+ $user->set_password({ password => $password }); > > return $c->render( status => 200, openapi => "" ); > } >diff --git a/t/db_dependent/api/v1/patrons_password.t b/t/db_dependent/api/v1/patrons_password.t >index 2585018229..b704761c08 100644 >--- a/t/db_dependent/api/v1/patrons_password.t >+++ b/t/db_dependent/api/v1/patrons_password.t >@@ -160,7 +160,7 @@ subtest 'set_public() (unprivileged user tests)' => sub { > t::lib::Mocks::mock_preference( 'OpacPasswordChange', 1 ); > > my $password = 'holapassword'; >- $patron->set_password( $password ); >+ $patron->set_password({ password => $password }); > $tx = $t->ua->build_tx( > POST => "/api/v1/public/patrons/" > . $other_patron->id >-- >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 22061
:
83613
|
83614
|
83680
|
83681
|
83682
|
83755
|
83756
|
83764
|
83765
|
83766
|
83767
|
83768
|
84207
|
84288
|
84289
|
84290
|
84291
|
84292
|
84293
|
84294
| 84489