aboutsummaryrefslogtreecommitdiffstats
path: root/include/auth.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 /include/auth.php
parent2665b34962ce004233ce64c837f1a7b9f842ecab (diff)
downloadvolse-hubzilla-3de81877c6aaacfad993375bcf88b512958180ab.tar.gz
volse-hubzilla-3de81877c6aaacfad993375bcf88b512958180ab.tar.bz2
volse-hubzilla-3de81877c6aaacfad993375bcf88b512958180ab.zip
more mfa cleanup
Diffstat (limited to 'include/auth.php')
-rw-r--r--include/auth.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php
index 0ea7b3dba..5956b89e2 100644
--- a/include/auth.php
+++ b/include/auth.php
@@ -11,6 +11,7 @@
use Zotlabs\Lib\Libzot;
use Zotlabs\Lib\AConfig;
+use Zotlabs\Module\Totp_check;
require_once('include/api_auth.php');
require_once('include/security.php');
@@ -267,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;
+ $o = new Totp_check;
echo $o->get();
killme();
}