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

--- Comment #8 from Tomás Cohen Arazi <[email protected]> ---
Created attachment 112751
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112751&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
Signed-off-by: Tomas Cohen Arazi <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to