diff --git a/controllers/class.Login.php b/controllers/class.Login.php index 9ca7950c2..f0d8ccb8a 100644 --- a/controllers/class.Login.php +++ b/controllers/class.Login.php @@ -66,7 +66,8 @@ class SeedDMS_Controller_Login extends SeedDMS_Controller_Common { if($settings->_enable2FactorAuthentication) { if($user->getSecret()) { - $tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS'); +// $tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS'); + $tfa = new \RobThree\Auth\TwoFactorAuth(new \RobThree\Auth\Providers\Qr\BaconQrCodeProvider()); if($tfa->verifyCode($user->getSecret(), $_POST['twofactauth']) !== true) { $this->setErrorMsg("login_error_text"); return false;