From ea99276a9cb0c7004fcc63bc52e32ee2810adc3b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 6 Apr 2018 16:36:09 +0200 Subject: [PATCH] 2FA will come in 6.0.x --- op/op.Login.php | 11 ----------- 1 file changed, 11 deletions(-) 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();