From 4e94f430babcfacae7f86f0505e9110d7c823a1e Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 30 Sep 2025 08:01:10 +0200 Subject: [PATCH] fix php error when checking 2nd factor --- controllers/class.Login.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;