150 |
t::lib::Mocks::mock_preference( 'TwoFactorAuthentication', 0 ); |
150 |
t::lib::Mocks::mock_preference( 'TwoFactorAuthentication', 0 ); |
152 |
( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, 'authrequired', undef, 'intranet' ); |
154 |
( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, 'authrequired', undef, 'intranet' ); |
153 |
is( $userid, $patron->userid, 'Succesful login' ); |
155 |
is( $userid, $patron->userid, 'Succesful login' ); |
154 |
is( C4::Auth::get_session($sessionID)->param('waiting-for-2FA'), undef, 'Second auth not required' ); |
156 |
is( C4::Auth::get_session($sessionID)->param('waiting-for-2FA'), undef, 'Second auth not required' ); |