From 4bc613011026ac4e510adc1b1c67e9a724a7d21d Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 28 Jan 2019 12:37:54 -0300 Subject: [PATCH] Bug 17006: (follow-up) set_password expects a hashref Sponsored-by: Municipal Libray Ceska Trebova Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens (cherry picked from commit a7978a9e97e98c5f2322b16b32289bb59bd1f26f) Signed-off-by: Martin Renvoize --- Koha/REST/V1/Patrons/Password.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/REST/V1/Patrons/Password.pm b/Koha/REST/V1/Patrons/Password.pm index f8e14947d8..db8512e47c 100644 --- a/Koha/REST/V1/Patrons/Password.pm +++ b/Koha/REST/V1/Patrons/Password.pm @@ -59,7 +59,7 @@ sub set { return try { ## Change password - $patron->set_password($password); + $patron->set_password({ password => $password }); return $c->render( status => 200, openapi => "" ); } -- 2.39.5