aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-08 10:18:32 +0000
committerMario <mario@mariovavti.com>2023-03-08 10:18:32 +0000
commit2ffef2be8f6967c012be52efb6c21dd28878ee4c (patch)
tree2ed8b1ecddbfab67bcebf096b2de0b66675b385c
parentc2e5610455894d11467abdf03a3121dd2de521b2 (diff)
downloadvolse-hubzilla-2ffef2be8f6967c012be52efb6c21dd28878ee4c.tar.gz
volse-hubzilla-2ffef2be8f6967c012be52efb6c21dd28878ee4c.tar.bz2
volse-hubzilla-2ffef2be8f6967c012be52efb6c21dd28878ee4c.zip
minor cleanup
-rw-r--r--Zotlabs/Module/Totp_check.php3
-rw-r--r--include/auth.php2
2 files changed, 1 insertions, 4 deletions
diff --git a/Zotlabs/Module/Totp_check.php b/Zotlabs/Module/Totp_check.php
index 3f6549382..c0b38a513 100644
--- a/Zotlabs/Module/Totp_check.php
+++ b/Zotlabs/Module/Totp_check.php
@@ -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
]
diff --git a/include/auth.php b/include/auth.php
index de515489a..0ea7b3dba 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -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();
}