Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #970 from open-apparel-registry/tw/email-case-sens…
Browse files Browse the repository at this point in the history
…itivity

Forgot password not case-sensitive
  • Loading branch information
TaiWilkin authored Mar 3, 2020
2 parents c61284f + 6ee9bb3 commit e27b493
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

### Fixed

- Ignore case for forgot-password email [#970] [https://github.com/open-apparel-registry/open-apparel-registry/pull/970]

### Security

## [2.22.0] - 2020-02-20
Expand Down
2 changes: 1 addition & 1 deletion src/django/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def validate_email(self, user_email):
if not self.reset_form.is_valid():
raise ValidationError("Error")

if not User.objects.filter(email=user_email).exists():
if not User.objects.filter(email__iexact=user_email).exists():
raise ValidationError("Error")

return user_email
Expand Down

0 comments on commit e27b493

Please sign in to comment.