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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 29 Jul 2022 18:41:10 +0000 (15:41 -0300)
commite7bb0d2a5ed92a1c9fedd5611e5569f11bd47723
tree492ba945f62e14c0ea4329e0427ae1102dce78f9
parente9891b84fefd74059caf81730b1acd26f7cc4569
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>
C4/Auth.pm