mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
minor cleanup
This commit is contained in:
@@ -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
|
||||
]
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user