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) {