Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
snyaggarwal committed Aug 2, 2022
1 parent a829753 commit 43e570c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/users/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,14 +187,14 @@ def perform_create(self, serializer):
try:
validate_password(data.get('password'))
except ValidationError as ex:
serializer._errors['password'] = ex.messages
serializer._errors['password'] = ex.messages # pylint: disable=protected-access
return

response = AuthService.get().create_user(data)
if response is True:
super().perform_create(serializer)
else:
serializer._errors = response
serializer._errors = response # pylint: disable=protected-access


class UserEmailVerificationView(UserBaseView):
Expand Down

0 comments on commit 43e570c

Please sign in to comment.