2FA will come in 6.0.x

This commit is contained in:
Uwe Steinmann 2018-04-06 16:36:09 +02:00
parent bfc59dc90c
commit ea99276a9c

View File

@ -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();