Bug 22061: Public route to change password
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 7 Jan 2019 11:25:08 +0000 (08:25 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 28 Jan 2019 15:45:55 +0000 (15:45 +0000)
commitbe1dec7648870b48121eb8e50dd673d10b684c3b
treeff4c26179dc30fbc2f46891e67d7f8b17cf11b3c
parentb65e4bee0ef4533edf6a255b9c58e80eab5623c5
Bug 22061: Public route to change password

This patch implements a route to change patron's password for
unprivileged users. It's intended for using in the OPAC (or however
consumers find it useful).

It is a starting point for the public API, and the bug also implements
the on/off switch some community members asked for.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/patrons_password.t \
          t/db_dependent/api/v1/auth.t
=> SUCCESS: Tests pass! i.e.
        - RESTPublicAPI is honoured
        - The /public/patrons/:patron_id/password endpoint works as
        expected
- Use your favourite API testing tool to try the endpoint.
- Sign off :-D

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/REST/V1/Patrons/Password.pm