From 6f045855218167e844ea4afcd0c984c0ede256d0 Mon Sep 17 00:00:00 2001 From: Raymond Penners Date: Mon, 6 Nov 2023 18:49:47 +0100 Subject: [PATCH] fix(socialaccount): is_active is not relevant There should be no difference between a regular sociallogin with an inactive user account, and a social login by email authentication. --- allauth/socialaccount/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/allauth/socialaccount/models.py b/allauth/socialaccount/models.py index df39cc1c49..13c53bd98f 100644 --- a/allauth/socialaccount/models.py +++ b/allauth/socialaccount/models.py @@ -324,7 +324,7 @@ def _lookup_by_socialaccount(self): def _lookup_by_email(self): emails = [e.email for e in self.email_addresses if e.verified] for email in emails: - users = filter_users_by_email(email, is_active=True, prefer_verified=True) + users = filter_users_by_email(email, prefer_verified=True) if users: self.user = users[0] if app_settings.EMAIL_AUTHENTICATION_AUTO_CONNECT: