mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-10 11:49:10 +00:00
perf: 优化加密 (#8206)
* perf: 优化加密 * perf: 优化加密 * perf: 优化加密传输 Co-authored-by: ibuler <ibuler@qq.com>
This commit is contained in:
@@ -56,6 +56,7 @@ def authenticate(request=None, **credentials):
|
||||
|
||||
for backend, backend_path in _get_backends(return_tuples=True):
|
||||
# 检查用户名是否允许认证 (预先检查,不浪费认证时间)
|
||||
logger.info('Try using auth backend: {}'.format(str(backend)))
|
||||
if not backend.username_allow_authenticate(username):
|
||||
continue
|
||||
|
||||
|
Reference in New Issue
Block a user