Koha-clms/opac/sco
Jonathan Druart a7bc65b0a3 Bug 30199: Do not generate jwt if patron does not exist
This is a follow-up patch for bug 29543. If an invalid cardnumber has
been used we should not generate a token.

Test Plan:
1. Set SelfCheckoutByLogin to 'cardnumber'.
2. Go to http://localhost:8080/cgi-bin/koha/sco/sco-main.pl
3. Enter an invalid carnumber like 'thisisabadcardnumber'
4. See the appropriate message "Sorry The userid thisisabadcardnumber was not found in the database. Please try again."
5. Try again with a different cardnumber and notice the same exact error message including the 'thisisabadcardnumber' cardnumber.
6. Apply this patch
7. Restart all the things!
8. Repeat steps 2-4
9. Try again with a different cardnumber, you should now see the correct
   cardnumber!

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit e5aeb047a5)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
2022-05-03 20:12:54 +00:00
..
help.pl Bug 29966: Dont pass authnotrequired true and flags together 2022-02-21 16:50:13 +00:00
printslip.pl Bug 30045: (bug 29543 follow-up) Fix SCO print slip 2022-02-21 14:19:19 +00:00
sco-main.pl Bug 30199: Do not generate jwt if patron does not exist 2022-05-03 20:12:54 +00:00
sco-patron-image.pl Bug 22943: Renames the in_ipset function to in_iprange in C4::Auth 2020-03-16 11:00:21 +00:00