diff --git a/portal/portal/users/adapters.py b/portal/portal/users/adapters.py index cbc262c..aa89575 100644 --- a/portal/portal/users/adapters.py +++ b/portal/portal/users/adapters.py @@ -36,6 +36,12 @@ def is_open_for_signup(self, request: HttpRequest): def clean_email(self, email): email = super().clean_email(email) + request = getattr(self, "request", None) + + # Skip unique email check if it's a password reset request + if request and request.path == reverse("account_reset_password"): + return email + if email and app_settings.UNIQUE_EMAIL: if EmailAddress.objects.filter(email=email).exists(): raise ValidationError(