Browse Source

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

pull/5657/head
ibuler 4 years ago committed by 老广
parent
commit
bc3e50a529
  1. 2
      apps/settings/models.py

2
apps/settings/models.py

@ -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:

Loading…
Cancel
Save