mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-24 22:12:00 +00:00
fix: 修复代码更改引起的bug
This commit is contained in:
parent
a7ab7da61c
commit
bc3e50a529
@ -90,7 +90,7 @@ class Setting(models.Model):
|
|||||||
setting = cls.objects.filter(name='AUTH_LDAP').first()
|
setting = cls.objects.filter(name='AUTH_LDAP').first()
|
||||||
if not setting:
|
if not setting:
|
||||||
return
|
return
|
||||||
ldap_backend = settings.AUTH_BACKEND_LABEL_MAPPING['ldap']
|
ldap_backend = settings.AUTH_BACKEND_LDAP
|
||||||
backends = settings.AUTHENTICATION_BACKENDS
|
backends = settings.AUTHENTICATION_BACKENDS
|
||||||
has = ldap_backend in backends
|
has = ldap_backend in backends
|
||||||
if setting.cleaned_value and not has:
|
if setting.cleaned_value and not has:
|
||||||
|
Loading…
Reference in New Issue
Block a user