Bug 34313: Add patron information in pass validation response
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 19 Jul 2023 19:15:13 +0000 (16:15 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 29 Aug 2023 17:59:02 +0000 (14:59 -0300)
commit749783debf95abd69410c62f119627564ae092ed
tree775e734c52bfa5e73062538c5a0486e8439e6358
parenteeef7839fbbf72637b9d7eccf84ec62760b9cd23
Bug 34313: Add patron information in pass validation response

This patch makes the password validation response return the following
patron attributes to the API consumer:

* cardnumber
* userid

This will give hints on what was used to validate in the fallback
bahvior the endpoint has.

To test:
1. Apply the unit tests patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/password_validation.t
=> FAIL: The endpoint doesn't return this valuable data
3. Apply this patch
4. Repeat 2
=> SUCESS: Tests pass! We got the cardnumber and the userid!
5. Sign off :-D

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Auth/Password.pm
api/v1/swagger/paths/auth.yaml