mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-19 12:13:25 +02:00
2fa: first draft
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
*/
|
||||
|
||||
use MyAAC\RateLimit;
|
||||
use MyAAC\TwoFactorAuth\TwoFactorAuth;
|
||||
|
||||
defined('MYAAC') or die('Direct access not allowed!');
|
||||
|
||||
@@ -57,6 +58,11 @@ if(!empty($login_account) && !empty($login_password))
|
||||
setSession('remember_me', true);
|
||||
}
|
||||
|
||||
$twoFactorAuth = new TwoFactorAuth($account_logged);
|
||||
if (!$twoFactorAuth->process()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$logged = true;
|
||||
$logged_flags = $account_logged->getWebFlags();
|
||||
|
||||
|
Reference in New Issue
Block a user