mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-20 13:16:23 +01:00
[WIP] Working 2fa email auth
This commit is contained in:
@@ -58,8 +58,8 @@ if(!empty($login_account) && !empty($login_password))
|
||||
setSession('remember_me', true);
|
||||
}
|
||||
|
||||
$twoFactorAuth = new TwoFactorAuth($account_logged);
|
||||
if (!$twoFactorAuth->process()) {
|
||||
$twoFactorAuth = TwoFactorAuth::getInstance($account_logged);
|
||||
if (!$twoFactorAuth->process($_POST['email-code'] ?? '')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user