[Koha-bugs] [Bug 19133] REST API: Password recovery

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 22 15:14:43 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19133

Lari Taskula <lari.taskula at hypernova.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #66415|0                           |1
        is obsolete|                            |

--- Comment #5 from Lari Taskula <lari.taskula at hypernova.fi> ---
Created attachment 94551
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=94551&action=edit
Bug 19133: Password recovery via REST API

This patch adds password recovery functionality to REST API.

POST /public/patrons/password/recovery
Creates a new password recovery request. Takes a JSON body with "email" and one
of
"userid" or "cardnumber" as parameters. Sends patron PASSWORD_RESET email.

POST /public/patrons/password/recovery/complete
Completes pending password recovery. Takes a JSON body with "uuid",
"new_password"
and "confirm_new_password" as parameters. If passwords meet Koha's password
requirements, changes patron's password to the requested new password.

To test:
1. prove t/db_dependent/api/v1/patrons_password_recovery.t
2. Send POST requests to the endpoints listed above. See the description of
   endpoints above for required parameters.
3. Check message_queue (or your email if you actually send messages in the
queue)
   to make sure your password recovery was enqueued
4. Observe your password has been changed once you completed the recovery
process

Sponsored-by: Koha-Suomi Oy

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list