diff --git a/op/op.Login.php b/op/op.Login.php index bf7603656..5b11515f7 100644 --- a/op/op.Login.php +++ b/op/op.Login.php @@ -129,17 +129,6 @@ if ($user->isAdmin() && ($_SERVER['REMOTE_ADDR'] != $settings->_adminIP ) && ( $ exit; } -if($settings->_enable2FactorAuthentication) { - if($secret = $user->getSecret()) { - require "vendor/autoload.php"; - $tfa = new \RobThree\Auth\TwoFactorAuth('SeedDMS'); - if($tfa->verifyCode($secret, $_POST['twofactauth']) !== true) { - _printMessage(getMLText("login_error_title"), getMLText("login_error_text")); - exit; - } - } -} - /* Clear login failures if login was successful */ $user->clearLoginFailures();