Bugzilla – Attachment 138191 Details for
Bug 30588
Add the option to require 2FA setup on first staff login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30588: Add missing atomic update
Bug-30588-Add-missing-atomic-update.patch (text/plain), 1.16 KB, created by
Jonathan Druart
on 2022-07-28 08:05:20 UTC
(
hide
)
Description:
Bug 30588: Add missing atomic update
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-07-28 08:05:20 UTC
Size:
1.16 KB
patch
obsolete
>From 57b4b8daa2a2fba38150ff49bd6bad8d0e763e40 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 28 Jul 2022 10:05:03 +0200 >Subject: [PATCH] Bug 30588: Add missing atomic update > >--- > installer/data/mysql/atomicupdate/bug_30588.pl | 17 +++++++++++++++++ > 1 file changed, 17 insertions(+) > create mode 100755 installer/data/mysql/atomicupdate/bug_30588.pl > >diff --git a/installer/data/mysql/atomicupdate/bug_30588.pl b/installer/data/mysql/atomicupdate/bug_30588.pl >new file mode 100755 >index 00000000000..58f46a77ed3 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_30588.pl >@@ -0,0 +1,17 @@ >+use Modern::Perl; >+ >+return { >+ bug_number => "30588", >+ description => "Add an 'enforce' option for TwoFactorAuthentication", >+ up => sub { >+ my ($args) = @_; >+ my ($dbh, $out) = @$args{qw(dbh out)}; >+ $dbh->do(q{ >+ UPDATE systempreferences >+ SET options="enforced|enabled|disabled", >+ value=CASE value WHEN '1' THEN 'enabled' ELSE 'disabled' END, >+ type="Choice" >+ WHERE variable="TwoFactorAuthentication" >+ }); >+ }, >+}; >-- >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 30588
:
138160
|
138161
|
138162
|
138163
|
138164
|
138165
|
138166
|
138191
|
138193
|
138953
|
138954
|
138955
|
138956
|
138957
|
138958
|
138959
|
138960
|
138961
|
138962
|
140365
|
140366
|
140367
|
140368
|
140369
|
140416
|
140417
|
140418
|
140419
|
140420
|
140421
|
140422
|
140423
|
140424
|
140425
|
140426
|
140427
|
140428
|
140429
|
140430
|
141978
|
141979
|
141980
|
141981
|
141982
|
141983
|
141984
|
141985
|
141986
|
141987
|
141988
|
141989
|
141990
|
141991
|
141992
|
142344
|
142345
|
142346
|
142347
|
142348
|
142349
|
142350
|
142351
|
142352
|
142353
|
142354
|
142355
|
142356
|
142357
|
142358