Bugzilla – Attachment 134636 Details for
Bug 28998
Encrypt borrowers.secret
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28998: Fix Auth.
Bug-28998-Fix-Auth.patch (text/plain), 1.02 KB, created by
Jonathan Druart
on 2022-05-05 11:28:45 UTC
(
hide
)
Description:
Bug 28998: Fix Auth.
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-05-05 11:28:45 UTC
Size:
1.02 KB
patch
obsolete
>From 32a6a00795f5e5d168d599dc16ce8336519b697e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 5 May 2022 13:28:19 +0200 >Subject: [PATCH] Bug 28998: Fix Auth. > >--- > t/db_dependent/Auth.t | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Auth.t b/t/db_dependent/Auth.t >index 4c29f2c1fb6..0ec2570bb9a 100755 >--- a/t/db_dependent/Auth.t >+++ b/t/db_dependent/Auth.t >@@ -148,7 +148,9 @@ subtest 'checkauth() tests' => sub { > } > > t::lib::Mocks::mock_preference( 'TwoFactorAuthentication', 0 ); >- $patron->auth_method('password')->store; >+ $patron->secret('one_secret'); >+ $patron->auth_method('password'); >+ $patron->store; > ( $userid, $cookie, $sessionID, $flags ) = C4::Auth::checkauth( $cgi, 'authrequired', undef, 'intranet' ); > is( $userid, $patron->userid, 'Succesful login' ); > is( C4::Auth::get_session($sessionID)->param('waiting-for-2FA'), undef, 'Second auth not required' ); >-- >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 28998
:
124772
|
124773
|
124774
|
133291
|
133317
|
133318
|
133319
|
133320
|
133321
|
133322
|
133323
|
133523
|
133524
|
133525
|
133526
|
133527
|
133528
|
133529
|
133580
|
133581
|
133582
|
133583
|
133584
|
133585
|
133586
|
133588
|
133619
|
133620
|
133621
|
133622
|
133623
|
133624
|
133625
|
133626
|
133627
|
133628
|
133629
|
133631
|
133632
|
133633
|
133634
|
133635
|
133636
|
133637
|
133638
|
133639
|
133640
|
133641
|
133642
|
133645
|
133646
|
133647
|
133648
|
133649
|
133650
|
133651
|
133652
|
133653
|
133654
|
133655
| 134636 |
134637
|
134671