View | Details | Raw Unified | Return to bug 30843
Collapse All | Expand All

(-)a/C4/Auth.pm (-1 / +2 lines)
Lines 883-889 sub checkauth { Link Here
883
        {
883
        {
884
            my $patron    = Koha::Patrons->find( { userid => $userid } );
884
            my $patron    = Koha::Patrons->find( { userid => $userid } );
885
            my $auth      = Koha::Auth::TwoFactorAuth->new( { patron => $patron } );
885
            my $auth      = Koha::Auth::TwoFactorAuth->new( { patron => $patron } );
886
            my $verified = $auth->verify($otp_token, 1);
886
            my $mfa_range = C4::Context->config('mfa_range') ? int(C4::Context->config('mfa_range')) : 1;
887
            my $verified = $auth->verify($otp_token, $mfa_range);
887
            $auth->clear;
888
            $auth->clear;
888
            if ( $verified ) {
889
            if ( $verified ) {
889
                # The token is correct, the user is fully logged in!
890
                # The token is correct, the user is fully logged in!
(-)a/debian/templates/koha-conf-site.xml.in (+2 lines)
Lines 480-484 __END_SRU_PUBLICSERVER__ Link Here
480
     <!-- Like: <domain><name>hotmail.com</name><belongs_to>outlook.com</belongs_to></domain> -->
480
     <!-- Like: <domain><name>hotmail.com</name><belongs_to>outlook.com</belongs_to></domain> -->
481
 </message_domain_limits>
481
 </message_domain_limits>
482
482
483
 <mfa_range>1</mfa_range><!-- Number of 30 second iterations to allow for MFA code checking -->
484
483
</config>
485
</config>
484
</yazgfs>
486
</yazgfs>
(-)a/etc/koha-conf.xml (-1 / +2 lines)
Lines 291-295 Link Here
291
     <!-- Like: <domain><name>hotmail.com</name><belongs_to>outlook.com</belongs_to></domain> -->
291
     <!-- Like: <domain><name>hotmail.com</name><belongs_to>outlook.com</belongs_to></domain> -->
292
 </message_domain_limits>
292
 </message_domain_limits>
293
293
294
 <mfa_range>1</mfa_range><!-- Number of 30 second iterations to allow for MFA code checking -->
295
294
</config>
296
</config>
295
</yazgfs>
297
</yazgfs>
296
- 

Return to bug 30843