fix: 修复代码更改引起的bug

pull/5657/head
ibuler 2021-03-01 14:31:27 +08:00 committed by 老广
parent a7ab7da61c
commit bc3e50a529
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class Setting(models.Model):
setting = cls.objects.filter(name='AUTH_LDAP').first()
if not setting:
return
ldap_backend = settings.AUTH_BACKEND_LABEL_MAPPING['ldap']
ldap_backend = settings.AUTH_BACKEND_LDAP
backends = settings.AUTHENTICATION_BACKENDS
has = ldap_backend in backends
if setting.cleaned_value and not has: