aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Totp_check.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-03-08 13:15:33 +0000
committerMario <mario@mariovavti.com>2023-03-08 13:15:33 +0000
commit3de81877c6aaacfad993375bcf88b512958180ab (patch)
treec1310b213b4d00dbff46382849956fc5a838c28d /Zotlabs/Module/Totp_check.php
parent2665b34962ce004233ce64c837f1a7b9f842ecab (diff)
downloadvolse-hubzilla-3de81877c6aaacfad993375bcf88b512958180ab.tar.gz
volse-hubzilla-3de81877c6aaacfad993375bcf88b512958180ab.tar.bz2
volse-hubzilla-3de81877c6aaacfad993375bcf88b512958180ab.zip
more mfa cleanup
Diffstat (limited to 'Zotlabs/Module/Totp_check.php')
-rw-r--r--Zotlabs/Module/Totp_check.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/Zotlabs/Module/Totp_check.php b/Zotlabs/Module/Totp_check.php
index c0b38a513..8212d3716 100644
--- a/Zotlabs/Module/Totp_check.php
+++ b/Zotlabs/Module/Totp_check.php
@@ -62,8 +62,8 @@ class Totp_check extends Controller {
public function get() {
- if (!local_channel()) {
- return;
+ if (!local_channel() || App::$module === 'totp_check') {
+ goaway(z_root());
}
$account = App::get_account();
@@ -78,8 +78,7 @@ class Totp_check extends Controller {
'$header' => t('Multifactor Verification'),
'$id' => $id,
'$desc' => t('Please enter the verification key from your authenticator app'),
- '$submit' => t('Verify'),
- '$static' => $static
+ '$submit' => t('Verify')
]
);
}