Skip to content

Commit

Permalink
fix(socialaccount): is_active is not relevant
Browse files Browse the repository at this point in the history
There should be no difference between a regular sociallogin with an inactive
user account, and a social login by email authentication.
  • Loading branch information
pennersr committed Nov 6, 2023
1 parent 096447f commit 6f04585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allauth/socialaccount/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f04585

Please sign in to comment.