From bc3e50a529667e6b3ff211d29e5629e37c4d279f Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 1 Mar 2021 14:31:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=BC=95=E8=B5=B7=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/settings/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/models.py b/apps/settings/models.py index 9d395656c..0a986efcb 100644 --- a/apps/settings/models.py +++ b/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: