From d49d1ba055a333076cdd2eb344dc82eb48f0059f Mon Sep 17 00:00:00 2001 From: xinwen Date: Tue, 14 Sep 2021 17:34:55 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20oauth2=20=E7=99=BB=E5=BD=95=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E9=99=90=E5=88=B6=E5=8F=AA=E8=83=BD=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/authentication/mixins.py | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/authentication/mixins.py b/apps/authentication/mixins.py index 79f747ee0..90785bb43 100644 --- a/apps/authentication/mixins.py +++ b/apps/authentication/mixins.py @@ -285,7 +285,6 @@ class AuthMixin(PasswordEncryptionViewMixin): elif not user.is_active: self.raise_credential_error(errors.reason_user_inactive) - self._check_is_local_user(user) self._check_is_block(user.username) self._check_login_acl(user, ip)