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

(-)a/t/db_dependent/Auth.t (-1 / +5 lines)
Lines 193-198 subtest 'checkauth() tests' => sub { Link Here
193
        is( $userid, $patron->userid, 'Succesful login' );
193
        is( $userid, $patron->userid, 'Succesful login' );
194
        is( C4::Auth::get_session($sessionID)->param('waiting-for-2FA'), 0, 'Second auth no longer required if OTP token has been verified' );
194
        is( C4::Auth::get_session($sessionID)->param('waiting-for-2FA'), 0, 'Second auth no longer required if OTP token has been verified' );
195
195
196
        logout($cgi);
197
        ( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, 'authrequired', undef, 'opac' );
198
        is( $userid, $patron->userid, 'Succesful login at the OPAC' );
199
        is( C4::Auth::get_session($sessionID)->param('waiting-for-2FA'), undef, 'No second auth required at the OPAC' );
200
196
        t::lib::Mocks::mock_preference( 'TwoFactorAuthentication', 0 );
201
        t::lib::Mocks::mock_preference( 'TwoFactorAuthentication', 0 );
197
    };
202
    };
198
203
199
- 

Return to bug 31247