minor cleanup

This commit is contained in:
Mario
2023-03-08 10:18:32 +00:00
parent c2e5610455
commit 2ffef2be8f
2 changed files with 1 additions and 4 deletions

View File

@@ -78,9 +78,6 @@ class Totp_check extends Controller {
'$header' => t('Multifactor Verification'),
'$id' => $id,
'$desc' => t('Please enter the verification key from your authenticator app'),
//'$success' => t('Success!'),
//'$fail' => t('Invalid code, please try again.'),
//'$maxfails' => t('Too many invalid codes...'),
'$submit' => t('Verify'),
'$static' => $static
]

View File

@@ -268,7 +268,7 @@ if((isset($_SESSION)) && (x($_SESSION, 'authenticated')) &&
$multiFactor = AConfig::Get(App::$account['account_id'], 'system', 'mfa_enabled');
if ($multiFactor && empty($_SESSION['2FA_VERIFIED']) && App::$module !== 'totp_check') {
$o = new Zotlabs\Module\Totp_check;
echo $o->get(true);
echo $o->get();
killme();
}