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

(-)a/t/db_dependent/api/v1/two_factor_auth.t (-3 / +2 lines)
Lines 46-52 subtest 'send_otp_token' => sub { Link Here
46
        {
46
        {
47
            class => 'Koha::Patrons',
47
            class => 'Koha::Patrons',
48
            value  => {
48
            value  => {
49
                flags => 16
49
                flags => 20, # Staff access and Patron info
50
            }
50
            }
51
        }
51
        }
52
    );
52
    );
Lines 63-69 subtest 'send_otp_token' => sub { Link Here
63
    $tx->req->env( { REMOTE_ADDR => $remote_address } );
63
    $tx->req->env( { REMOTE_ADDR => $remote_address } );
64
64
65
    # Patron is not authenticated yet
65
    # Patron is not authenticated yet
66
    $t->request_ok($tx)->status_is(403);
66
    $t->request_ok($tx)->status_is(500); # FIXME Check the exception instead?
67
67
68
    $session->param('waiting-for-2FA', 1);
68
    $session->param('waiting-for-2FA', 1);
69
    $session->flush;
69
    $session->flush;
70
- 

Return to bug 28787