mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-09 19:29:48 +00:00
[Update] 修改settings配置 (#2067)
* [Update] 修改settings配置 * [Update] 修改settings * [Update] 修改密码校验规则前后端逻辑 * [Update] 修改用户config机制 * [Update] 修改配置 * [Update] 修改config example增加翻译
This commit is contained in:
@@ -14,7 +14,6 @@ from django.utils import timezone
|
||||
from django.shortcuts import reverse
|
||||
|
||||
from common.utils import get_signer, date_expired_default
|
||||
from common.models import common_settings
|
||||
from orgs.mixins import OrgManager
|
||||
from orgs.utils import current_org
|
||||
|
||||
@@ -284,7 +283,7 @@ class User(AbstractUser):
|
||||
|
||||
@property
|
||||
def otp_force_enabled(self):
|
||||
if common_settings.SECURITY_MFA_AUTH:
|
||||
if settings.SECURITY_MFA_AUTH:
|
||||
return True
|
||||
return self.otp_level == 2
|
||||
|
||||
|
Reference in New Issue
Block a user