Skip to content

Commit

Permalink
Merge pull request #1459 from JayanthBontha/DupliAccFix
Browse files Browse the repository at this point in the history
Dupli acc fix
  • Loading branch information
rolandgeider authored Oct 12, 2023
2 parents ee584a5 + a106326 commit 9830050
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------
Expand Down
3 changes: 2 additions & 1 deletion wger/core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9830050

Please sign in to comment.