Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

already registered emails bug fixed #214

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hrahmadi71
Copy link

In such case that user email is unique and normal user registering is available: If a user tries to social sign-in with a registered email, it will end up with db error saying the email is already exists!
For example assume this scenario:
1- user register normally (using normal register form) with his/her gmail.
2- the user tries to login by google with the same gmail address.
as I mentioned above, convert-token request will response with 500 error because of db error.
I fixed this problem by catching this error in oauth2_grants file (SocialTokenGrant.validate_token_request method).

@fabiovasini
Copy link

Hi! Can you please push this change to pip? I'm facing the same problem.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants