aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Totp_check.php
diff options
context:
space:
mode:
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')
]
);
}