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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 24 16:00:41 CEST 2017


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

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

This patch adds password recovery functionality to REST API.

POST /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 /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/passwordrecovery.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

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


More information about the Koha-bugs mailing list