[Koha-bugs] [Bug 19133] Password recovery routes
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 3 18:31:47 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19133
Kyle M Hall <kyle at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #112751|0 |1
is obsolete| |
Attachment #112752|0 |1
is obsolete| |
Attachment #112753|0 |1
is obsolete| |
Attachment #112755|0 |1
is obsolete| |
Attachment #112756|0 |1
is obsolete| |
Attachment #112757|0 |1
is obsolete| |
Attachment #112758|0 |1
is obsolete| |
--- Comment #19 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 112937
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=112937&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 <tomascohen at theke.io>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list