mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-22 09:06:40 +03:00
Merge pull request #168 from Haos616/master
Fixed errors messages for PasswordResetSerializer
This commit is contained in:
commit
eda3d7b6d2
|
@ -154,7 +154,7 @@ class PasswordResetSerializer(serializers.Serializer):
|
||||||
# Create PasswordResetForm with the serializer
|
# Create PasswordResetForm with the serializer
|
||||||
self.reset_form = self.password_reset_form_class(data=self.initial_data)
|
self.reset_form = self.password_reset_form_class(data=self.initial_data)
|
||||||
if not self.reset_form.is_valid():
|
if not self.reset_form.is_valid():
|
||||||
raise serializers.ValidationError(_('Error'))
|
raise serializers.ValidationError(self.reset_form.errors)
|
||||||
|
|
||||||
return value
|
return value
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user