mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
fix layout of input field for 2nd factore, not need to include 2-factor lib
This commit is contained in:
parent
2ccbe2b9c7
commit
076e5bc5c2
|
@ -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"),
|
||||
'<input type="Password" id="twofactauth" name="twofactauth" value="" />'
|
||||
array(
|
||||
'element'=>'input',
|
||||
'type'=>'text',
|
||||
'id'=>'twofactauth',
|
||||
'name'=>'twofactauth',
|
||||
'placeholder'=>getMLText('2_factor_auth_code'),
|
||||
'autocomplete'=>'off',
|
||||
'required'=>true
|
||||
)
|
||||
);
|
||||
}
|
||||
if($enableLanguageSelector) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user