Update htmly.php

This commit is contained in:
Dan 2025-01-23 08:17:44 +07:00
commit 015e631e27

View file

@ -148,7 +148,7 @@ post('/login', function () {
$pass = from($_REQUEST, 'password');
$mfa_secret = user('mfa_secret', $user);
if ($proper && $captcha && !empty($user) && !empty($pass)) {
if (!is_null($mfa_secret) && $mfa_secret !== "disabled") {
if (!is_null($mfa_secret) && $mfa_secret !== "disabled" && config('mfa.state') === 'true') {
config('views.root', 'system/admin/views');
render('login-mfa', array(