Skip to content

Commit

Permalink
fix(account): Prevent reuse of email confirmation links
Browse files Browse the repository at this point in the history
  • Loading branch information
pennersr committed Dec 8, 2023
1 parent 0c040aa commit b0ae821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allauth/account/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def all_expired(self):
return self.filter(self.expired_q())

def all_valid(self):
return self.exclude(self.expired_q())
return self.exclude(self.expired_q()).filter(email_address__verified=False)

def expired_q(self):
sent_threshold = timezone.now() - timedelta(
Expand Down

0 comments on commit b0ae821

Please sign in to comment.