Bug 28786: Add new syspref TwoFactorAuthentication

Sponsored-by: Orex Digital

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2021-07-28 20:49:55 +02:00 committed by Fridolin Somers
parent 313b85246e
commit 451e4b007d
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,10 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('TwoFactorAuthentication', '0', 'NULL', 'Enables two-factor authentication', 'YesNo')
});
NewVersion( $DBversion, 28786, "Add new syspref TwoFactorAuthentication");
}

View file

@ -695,6 +695,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `
('TransferWhenCancelAllWaitingHolds','0',NULL,'Transfer items when cancelling all waiting holds','YesNo'),
('TranslateNotices','0',NULL, 'Allow notices to be translated','YesNo'),
('TrapHoldsOnOrder','1',NULL,'If enabled, Koha will trap holds for on order items ( notforloan < 0 )','YesNo'),
('TwoFactorAuthentication', '0', 'NULL', 'Enables two-factor authentication', 'YesNo'),
('UNIMARCAuthorityField100','afrey50 ba0',NULL,'Define the contents of UNIMARC authority control field 100 position 08-35','Textarea'),
('UNIMARCAuthorsFacetsSeparator',', ',NULL,'UNIMARC authors facets separator','short'),
('UNIMARCField100Language','fre',NULL,'UNIMARC field 100 default language','short'),

View file

@ -200,3 +200,9 @@ Staff interface:
1: "Don't allow"
0: Allow
- staff to login by means other than shibboleth.
-
- pref: TwoFactorAuthentication
choices:
1: Enable
0: "Don't enable"
- two-factor authentication (2FA).