[Koha-bugs] [Bug 32066] User can get stuck on login screen
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Nov 3 08:43:21 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32066
--- Comment #2 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Jonathan Druart from comment #1)
> This change should fix the problem.
>
> diff --git a/C4/Auth.pm b/C4/Auth.pm
> index b6933e4cc60..8bd13e88e1f 100644
> --- a/C4/Auth.pm
> +++ b/C4/Auth.pm
> @@ -1784,11 +1784,13 @@ sub check_cookie_auth {
> $session->param('desk_id'),
> $session->param('desk_name'),
> $session->param('register_id'),
> $session->param('register_name')
> );
> - return ( "additional-auth-needed", $session )
> - if $session->param('waiting-for-2FA');
> + if ( C4::Context->preference('TwoFactorAuthentication') ne
> 'disabled' ) {
> + return ( "additional-auth-needed", $session )
> + if $session->param('waiting-for-2FA');
> .
> - return ( "setup-additional-auth-needed", $session )
> - if $session->param('waiting-for-2FA-setup');
> + return ( "setup-additional-auth-needed", $session )
> + if $session->param('waiting-for-2FA-setup');
> + }
> .
> return ( "ok", $session );
> } else {
Note that this diff contains a few strange dots that block applying it
directly. No problem. I will have a look now.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list