mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-28 12:38:00 +00:00
2FA will come in 6.0.x
This commit is contained in:
parent
bfc59dc90c
commit
ea99276a9c
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user