Merge pull request #1 from Tivix/master

Update
This commit is contained in:
Egor 2015-12-13 21:58:58 +03:00
commit 56773d8618
2 changed files with 3 additions and 3 deletions

View File

@ -57,8 +57,8 @@ Registration (optional)
urlpatterns = patterns('',
...,
(r'^rest-auth/', include('rest_auth.urls')),
(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
url(r'^rest-auth/', include('rest_auth.urls')),
url(r'^rest-auth/registration/', include('rest_auth.registration.urls'))
)

View File

@ -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