Bugzilla – Attachment 138181 Details for
Bug 31247
Staff interface 2FA blocks logging into the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31247: Fix OPAC authentication when 2FA is enabled
Bug-31247-Fix-OPAC-authentication-when-2FA-is-enab.patch (text/plain), 1.14 KB, created by
Jonathan Druart
on 2022-07-27 15:49:05 UTC
(
hide
)
Description:
Bug 31247: Fix OPAC authentication when 2FA is enabled
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-07-27 15:49:05 UTC
Size:
1.14 KB
patch
obsolete
>From 437b59e3ddb1d71308b7ebe6d6238e2e7c341819 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 27 Jul 2022 17:47:18 +0200 >Subject: [PATCH] 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 >--- > C4/Auth.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index a44cd097679..fec2c4113a7 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -861,7 +861,7 @@ sub checkauth { > > my $session; > my $invalid_otp_token; >- my $require_2FA = ( C4::Context->preference('TwoFactorAuthentication') && $type ne "OPAC" ) ? 1 : 0; >+ my $require_2FA = ( C4::Context->preference('TwoFactorAuthentication') && $type ne "opac" ) ? 1 : 0; > > # Basic authentication is incompatible with the use of Shibboleth, > # as Shibboleth may return REMOTE_USER as a Shibboleth attribute, >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31247
:
138181
|
138182
|
138183
|
138184
|
138219
|
138220