Bugzilla – Attachment 138184 Details for
Bug 31247
Staff interface 2FA blocks logging into the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31247: Add tests
Bug-31247-Add-tests.patch (text/plain), 1.17 KB, created by
Caroline Cyr La Rose
on 2022-07-27 16:04:05 UTC
(
hide
)
Description:
Bug 31247: Add tests
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2022-07-27 16:04:05 UTC
Size:
1.17 KB
patch
obsolete
>From 6260f690b36cd9dbdae3c3b8703b640f28ac0e03 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 27 Jul 2022 17:52:34 +0200 >Subject: [PATCH] Bug 31247: Add tests > >Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >--- > t/db_dependent/Auth.t | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t >index ed1973ec5f..58f64ce927 100755 >--- a/t/db_dependent/Auth.t >+++ b/t/db_dependent/Auth.t >@@ -193,6 +193,11 @@ subtest 'checkauth() tests' => sub { > is( $userid, $patron->userid, 'Succesful login' ); > is( C4::Auth::get_session($sessionID)->param('waiting-for-2FA'), 0, 'Second auth no longer required if OTP token has been verified' ); > >+ logout($cgi); >+ ( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, 'authrequired', undef, 'opac' ); >+ is( $userid, $patron->userid, 'Succesful login at the OPAC' ); >+ is( C4::Auth::get_session($sessionID)->param('waiting-for-2FA'), undef, 'No second auth required at the OPAC' ); >+ > t::lib::Mocks::mock_preference( 'TwoFactorAuthentication', 0 ); > }; > >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 31247
:
138181
|
138182
|
138183
|
138184
|
138219
|
138220