Files
myaac/system/pages/account/2fa/app/disable.php
2026-01-21 20:12:41 +01:00

17 lines
334 B
PHP

<?php
defined('MYAAC') or die('Direct access not allowed!');
require __DIR__ . '/../base.php';
if (!$account_logged->isLoaded()) {
error('Account not found!');
return;
}
$twoFactorAuth->disable();
$twig->display('success.html.twig', [
'title' => 'Disabled',
'description' => 'Two Factor Authentication has been disabled.'
]);