https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43896

--- Comment #8 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 209715
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209715&action=edit
Bug 43896: Patrons can't log in with a cardnumber that matches another patron's
userid

Bug 40286 made checkpw_internal use Koha::Patrons->find_by_identifier, which
only returns the userid match when an identifier is one patron's userid and
another patron's cardnumber. Before that, Koha tried the userid match and then
the cardnumber match. Now the cardnumber owner can't log in with their own
password, and each attempt counts as a failed login on the other patron.

This patch restores the cardnumber fallback when the password doesn't match.

Test Plan:
1) Apply the unit test patch
2) prove t/db_dependent/Auth.t
3) Note the test failures
4) Apply this patch
5) prove t/db_dependent/Auth.t
6) All tests pass!

Signed-off-by: Kyle M Hall <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to