diff --git a/plugins/Common.php b/plugins/Common.php index 86c2f10..23869fb 100644 --- a/plugins/Common.php +++ b/plugins/Common.php @@ -650,7 +650,7 @@ Class Common { } $authConfig = FSC::$app['config']['password_auth']; - if (empty($authConfig['enable'])) { + if (empty($authConfig['enable']) || $authConfig['enable'] === 'false') { return true; } @@ -674,7 +674,7 @@ Class Common { } $authConfig = FSC::$app['config']['password_auth']; - if (empty($authConfig['enable'])) { + if (empty($authConfig['enable']) || $authConfig['enable'] === 'false') { return true; } diff --git a/themes/beauty/views/site/index.php b/themes/beauty/views/site/index.php index 632bf16..9d07a76 100644 --- a/themes/beauty/views/site/index.php +++ b/themes/beauty/views/site/index.php @@ -200,7 +200,7 @@ eof; //判断是否需要加密访问的目录 $lockIcon = ''; - if (!empty($authConfig['enable']) && !empty($authConfig['allow'][$dir['directory']])) { + if (!empty($authConfig['enable']) && $authConfig['enable'] !== 'false' && !empty($authConfig['allow'][$dir['directory']])) { $lockIcon = <<加密目录 eof;