]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 30 Aug 2023 07:09:30 +0000 (21:09 -1000)
commit06f09de19e47e2e48abc90938f2986115f062d7c
tree717392efd31ffb93bb68275806802a624106a939
parentedda7a23cb64acd2a29ab7f76496a1f1ffffd69a
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>
(cherry picked from commit 749783debf95abd69410c62f119627564ae092ed)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/REST/V1/Auth/Password.pm
api/v1/swagger/paths/auth.yaml