Bug 17006: (follow-up) set_password expects a hashref
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 28 Jan 2019 15:37:54 +0000 (12:37 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 1 Feb 2019 15:19:04 +0000 (15:19 +0000)
Sponsored-by: Municipal Libray Ceska Trebova
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit a7978a9e97e98c5f2322b16b32289bb59bd1f26f)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Koha/REST/V1/Patrons/Password.pm

index f8e1494..db8512e 100644 (file)
@@ -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 => "" );
     }