]> git.koha-community.org Git - koha.git/commit
Bug 31247: Fix OPAC authentication when 2FA is enabled
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 27 Jul 2022 15:47:18 +0000 (17:47 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 29 Sep 2022 14:23:39 +0000 (14:23 +0000)
commita39825d1a1b0bd30dca796a9b1b7c6f54649aa1b
treeeebf8bc2a470a18a78bd6bf830122288e512ef65
parent8da1b675ffd4a823bcb7b5c7ffe8335ca7e18cc9
Bug 31247: Fix OPAC authentication when 2FA is enabled

Silly mistake from bug 28786, the $type should be compared to "opac"
instead of "OPAC", erk!

Test plan:
Turn 2FA on
Set it up for an user
Login at the OPAC
=> Without this patch you keep being redirected to the auth form screen
=> With this patch applied you are able to successfully login

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit e7bb0d2a5ed92a1c9fedd5611e5569f11bd47723)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Auth.pm