Bug 17006: Add /patrons/{patron_id}/password
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 16 Aug 2018 10:02:17 +0000 (07:02 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 28 Jan 2019 15:25:39 +0000 (15:25 +0000)
commitae1e6b558c1e5c581fe0652774c97ae18531758a
tree0ad3b0f2a4ba47bd669c6dc1646eae7605b870b4
parentd4570947b0ba4f52f03e190b787b2605948a1495
Bug 17006: Add /patrons/{patron_id}/password

This patch introduces an endpoint for changing a patron's password. It
targets privileged user with the right permissions, changing some
patron's password.

To test:

- Apply this patchset
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/patrons_password.t
=> SUCCESS: tests pass!
- Play with the different use cases highlighted by the tests, on your
favourite REST testing tool (Postman, RESTer on FF, etc).

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

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 [new file with mode: 0644]
t/db_dependent/api/v1/patrons_password.t