Browse Source

[Update] 添加改密计划安全模式配置项

pull/4123/head
Bai 4 years ago
parent
commit
29666cc8d3
  1. 3
      apps/jumpserver/conf.py
  2. 2
      apps/jumpserver/settings/custom.py

3
apps/jumpserver/conf.py

@ -256,7 +256,8 @@ class Config(dict):
'FORCE_SCRIPT_NAME': '', 'FORCE_SCRIPT_NAME': '',
'LOGIN_CONFIRM_ENABLE': False, 'LOGIN_CONFIRM_ENABLE': False,
'WINDOWS_SKIP_ALL_MANUAL_PASSWORD': False, 'WINDOWS_SKIP_ALL_MANUAL_PASSWORD': False,
'ORG_CHANGE_TO_URL': '' 'ORG_CHANGE_TO_URL': '',
'CHANGE_AUTH_PLAN_ENABLE_SECURE_MODE': True
} }
def compatible_auth_openid_of_key(self): def compatible_auth_openid_of_key(self):

2
apps/jumpserver/settings/custom.py

@ -85,3 +85,5 @@ LOGIN_LOG_KEEP_DAYS = DYNAMIC.LOGIN_LOG_KEEP_DAYS
TASK_LOG_KEEP_DAYS = CONFIG.TASK_LOG_KEEP_DAYS TASK_LOG_KEEP_DAYS = CONFIG.TASK_LOG_KEEP_DAYS
ORG_CHANGE_TO_URL = CONFIG.ORG_CHANGE_TO_URL ORG_CHANGE_TO_URL = CONFIG.ORG_CHANGE_TO_URL
WINDOWS_SKIP_ALL_MANUAL_PASSWORD = CONFIG.WINDOWS_SKIP_ALL_MANUAL_PASSWORD WINDOWS_SKIP_ALL_MANUAL_PASSWORD = CONFIG.WINDOWS_SKIP_ALL_MANUAL_PASSWORD
CHANGE_AUTH_PLAN_ENABLE_SECURE_MODE = CONFIG.CHANGE_AUTH_PLAN_ENABLE_SECURE_MODE

Loading…
Cancel
Save