Lines 279-285
subtest 'checkauth() tests' => sub {
Link Here
|
279 |
subtest 'Two-factor authentication' => sub { |
279 |
subtest 'Two-factor authentication' => sub { |
280 |
plan tests => 18; |
280 |
plan tests => 18; |
281 |
|
281 |
|
282 |
t::lib::Mocks::mock_preference( 'AutoLocation', 0 ); |
282 |
t::lib::Mocks::mock_preference( 'StaffLoginRestrictLibraryByIP', 0 ); |
283 |
|
283 |
|
284 |
my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 1 } } ); |
284 |
my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { flags => 1 } } ); |
285 |
my $password = 'password'; |
285 |
my $password = 'password'; |
286 |
- |
|
|