mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-09 11:19:08 +00:00
perf: ldap测试登录提示优化&上产文件名长度限制
This commit is contained in:
@@ -649,7 +649,7 @@ class LDAPTestUtil(object):
|
||||
|
||||
def _test_before_login_check(self, username, password):
|
||||
from settings.ws import CACHE_KEY_LDAP_TEST_CONFIG_TASK_STATUS, TASK_STATUS_IS_OVER
|
||||
if cache.get(CACHE_KEY_LDAP_TEST_CONFIG_TASK_STATUS) != TASK_STATUS_IS_OVER:
|
||||
if not cache.get(CACHE_KEY_LDAP_TEST_CONFIG_TASK_STATUS):
|
||||
raise self.LDAPBeforeLoginCheckError(_('Please test the connection first'))
|
||||
|
||||
backend = LDAPAuthorizationBackend()
|
||||
|
Reference in New Issue
Block a user