Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroBern committed Feb 6, 2020
1 parent 84e388e commit b60a817
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions graphql_auth/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,9 @@ def resolve_mutation(cls, root, info, **kwargs):
except EmailAlreadyInUse:
return cls(
success=False,
# while the token was sent and the user haven't verified,
# the email was free. If other account was created with it
# it is already in use
# if the email was set as a secondary email,
# the RegisterForm will not catch it,
# so we need to run UserStatus.clean_email(email)
errors={UserModel.EMAIL_FIELD: Messages.EMAIL_IN_USE},
)
except SMTPException:
Expand Down

0 comments on commit b60a817

Please sign in to comment.