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

(-)a/t/db_dependent/Auth.t (-2 / +3 lines)
Lines 148-154 subtest 'checkauth() tests' => sub { Link Here
148
        }
148
        }
149
149
150
        t::lib::Mocks::mock_preference( 'TwoFactorAuthentication', 0 );
150
        t::lib::Mocks::mock_preference( 'TwoFactorAuthentication', 0 );
151
        $patron->auth_method('password')->store;
151
        $patron->secret('one_secret');
152
        $patron->auth_method('password');
153
        $patron->store;
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' );
155
- 

Return to bug 28998