From 076e5bc5c29110e9f3b6e56b0432af970b6fdfbb Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Thu, 11 May 2023 17:26:55 +0200 Subject: [PATCH] fix layout of input field for 2nd factore, not need to include 2-factor lib --- views/bootstrap/class.Login.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/views/bootstrap/class.Login.php b/views/bootstrap/class.Login.php index 7c60e5a2f..52f87d95e 100644 --- a/views/bootstrap/class.Login.php +++ b/views/bootstrap/class.Login.php @@ -134,17 +134,17 @@ $(document).ready( function() { ) ); if($enable2factauth) { - require "vendor/robthree/twofactorauth/lib/Providers/Qr/IQRCodeProvider.php"; - require "vendor/robthree/twofactorauth/lib/Providers/Qr/BaseHTTPQRCodeProvider.php"; -// require "vendor/robthree/twofactorauth/lib/Providers/Qr/GoogleQRCodeProvider.php"; - require "vendor/robthree/twofactorauth/lib/Providers/Rng/IRNGProvider.php"; - require "vendor/robthree/twofactorauth/lib/Providers/Rng/MCryptRNGProvider.php"; - require "vendor/robthree/twofactorauth/lib/TwoFactorAuthException.php"; - require "vendor/robthree/twofactorauth/lib/TwoFactorAuth.php"; - $tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS'); $this->formField( getMLText("2_factor_auth"), - '' + array( + 'element'=>'input', + 'type'=>'text', + 'id'=>'twofactauth', + 'name'=>'twofactauth', + 'placeholder'=>getMLText('2_factor_auth_code'), + 'autocomplete'=>'off', + 'required'=>true + ) ); } if($enableLanguageSelector) {