]> git.koha-community.org Git - koha.git/commit
Bug 32066: Check 2FA pref in check_cookie_auth
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 3 Nov 2022 07:47:24 +0000 (07:47 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Nov 2022 22:02:38 +0000 (19:02 -0300)
commit68d5b50c62b1637619fdb6761ac61588d0d69b60
tree7644ebcf52d56dd6b37d63a28e3fe749bb8518ac
parent0774ec01c6e7c56ebf99327c1d7ff35325a191f0
Bug 32066: Check 2FA pref in check_cookie_auth

Test plan:

Without this patch:
1. Set the syspref TwoFactorAuthentication (enforce or enabled)
2. Configure 2FA for a patron
3. Logout
4. Authenticate but don't enter the 2FA code
5. Switch off the syspref (disabled) [via another browser or so]
6. Patron is stuck on the [original] login screen. [Only removing
   the session cookie would resolve it.]

With this patch:
1. Follow the steps above again. But note that you can refresh
   your browser window to get in now.
2. Verify that Auth.t passes now too.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Auth.pm