From e2d9ac28eac369a3935a48ec30fedc769be7892f Mon Sep 17 00:00:00 2001 From: JayanthBontha Date: Thu, 12 Oct 2023 12:49:02 +0530 Subject: [PATCH] Fixed Duplicate Email Registration --- AUTHORS.rst | 1 + wger/core/forms.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/AUTHORS.rst b/AUTHORS.rst index abb43eee3..75326e5ec 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -74,6 +74,7 @@ Developers * Bernardo Koen - https://github.com/BernardoKoen * Gabriel Liss - https://github.com/gabeliss * Alexandra Rhodes - https://github.com/arhodes130 +* Jayanth Bontha - https://github.com/JayanthBontha Translators ----------- diff --git a/wger/core/forms.py b/wger/core/forms.py index 68f8f20c8..ee367da7b 100644 --- a/wger/core/forms.py +++ b/wger/core/forms.py @@ -196,7 +196,8 @@ def clean_email(self): if not email: return email try: - user = User.objects.get(email=email) + #Performs a case-insensitive lookup + user = User.objects.get(email__iexact=email) if user.email == self.instance.email: return email except User.DoesNotExist: