mirror of
https://github.com/slawkens/myaac.git
synced 2026-01-20 21:26:23 +01:00
18 lines
386 B
PHP
18 lines
386 B
PHP
<?php
|
|
defined('MYAAC') or die('Direct access not allowed!');
|
|
|
|
require __DIR__ . '/../base.php';
|
|
|
|
if ($twoFactorAuth->hasRecentEmailCode(1 * 60)) {
|
|
$errors = ['Sorry, one email per 15 minutes'];
|
|
}
|
|
else {
|
|
$twoFactorAuth->resendEmailCode();
|
|
}
|
|
|
|
if (!empty($errors)) {
|
|
$twig->display('error_box.html.twig', ['errors' => $errors]);
|
|
}
|
|
|
|
$twig->display('account/2fa/email/login.html.twig');
|