mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-13 13:59:17 +00:00
perf(settings): 优化settings配置 (#5515)
* stash * perf: 优化 动态seting * perf(settings): 优化settings配置 * perf: 完成终端和安全setting * perf: 修改翻译 * perf: 去掉其他位置的DYNAMIC * perf: 还原回来原来的一些代码 * perf: 优化ldap * perf: 移除dynmic config * perf: 去掉debug消息 * perf: 优化 refresh 命名 Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -16,7 +16,6 @@ from django.utils.translation import ugettext_lazy as _
|
||||
from django.utils import timezone
|
||||
from django.shortcuts import reverse
|
||||
|
||||
from common.local import LOCAL_DYNAMIC_SETTINGS
|
||||
from orgs.utils import current_org
|
||||
from orgs.models import OrganizationMember, Organization
|
||||
from common.utils import date_expired_default, get_logger, lazyproperty
|
||||
@@ -452,7 +451,7 @@ class MFAMixin:
|
||||
|
||||
@property
|
||||
def mfa_force_enabled(self):
|
||||
if LOCAL_DYNAMIC_SETTINGS.SECURITY_MFA_AUTH:
|
||||
if settings.SECURITY_MFA_AUTH:
|
||||
return True
|
||||
return self.mfa_level == 2
|
||||
|
||||
|
Reference in New Issue
Block a user