mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 18:43:44 +03:00
Make email in password reset serializer Case unsensetive
This commit is contained in:
parent
f1e96be7e6
commit
9b7ede752b
|
@ -115,7 +115,7 @@ class PasswordResetSerializer(serializers.Serializer):
|
|||
if not self.reset_form.is_valid():
|
||||
raise serializers.ValidationError(_('Error'))
|
||||
|
||||
if not UserModel.objects.filter(email=value).exists():
|
||||
if not UserModel.objects.filter(email__iexact=value).exists():
|
||||
raise serializers.ValidationError(_('Invalid e-mail address'))
|
||||
|
||||
return value
|
||||
|
|
Loading…
Reference in New Issue
Block a user