mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-23 01:26:39 +03:00
commit
56773d8618
|
@ -57,8 +57,8 @@ Registration (optional)
|
||||||
|
|
||||||
urlpatterns = patterns('',
|
urlpatterns = patterns('',
|
||||||
...,
|
...,
|
||||||
(r'^rest-auth/', include('rest_auth.urls')),
|
url(r'^rest-auth/', include('rest_auth.urls')),
|
||||||
(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
|
url(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ class PasswordResetSerializer(serializers.Serializer):
|
||||||
if not self.reset_form.is_valid():
|
if not self.reset_form.is_valid():
|
||||||
raise serializers.ValidationError(_('Error'))
|
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'))
|
raise serializers.ValidationError(_('Invalid e-mail address'))
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in New Issue
Block a user