@@ -, +, @@ --- installer/data/mysql/atomicupdate/two-fa.perl | 10 ++++++++++ installer/data/mysql/mandatory/sysprefs.sql | 1 + .../en/modules/admin/preferences/staff_interface.pref | 6 ++++++ 3 files changed, 17 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/two-fa.perl --- a/installer/data/mysql/atomicupdate/two-fa.perl +++ a/installer/data/mysql/atomicupdate/two-fa.perl @@ -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"); +} --- a/installer/data/mysql/mandatory/sysprefs.sql +++ a/installer/data/mysql/mandatory/sysprefs.sql @@ -683,6 +683,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'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref @@ -188,3 +188,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). --