question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"User is already registered with this e-mail address."

See original GitHub issue

Trying to implement a FB login flow. I upgraded to v.0.9.3 because I thought it fixes the bug where you are already signed up via email. However, it now seems that the code knows the user is registered but doesn’t sign him in anyway. I am getting the access_token just fine from FB. I have tried both the /rest-auth/facebook/ and /rest-auth/facebook/connect/ endpoints, although not quite understanding the difference. At any rate, they are both resulting in the same 400 error.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
maxim-khtcommented, Feb 8, 2018

Thank you @philippeluickx, yes it is implemented in the latest version by @aleksihakli and can be used via /rest-auth/facebook/connect/ view.

@EvanZ The difference between /rest-auth/facebook/ and /rest-auth/facebook/connect/ is, connect view only works after you logged in as a regular user via email and you wish to attach social account to this existing user. Here’s more info in the docs: http://django-rest-auth.readthedocs.io/en/latest/installation.html#additional-social-connect-views.

In order to use social connect view you need to

  1. Login as existing user (registered before as a non-social account)
  2. Access /rest-auth/facebook/connect/ to attach social account to this existing user.
1reaction
EvanZcommented, Feb 9, 2018

At least with FB, they tell you whether an email is verified or not. If they say it is verified, my understanding is that is a guarantee they verified it. I don’t know about how other social providers do it. From my perspective, it would make more sense to enable the library users to “trust and verify” the social auth providers that they use, and not force one way of thinking, but it is not my project, so not my choice to make. I understand now the security issue, which is important, and the tradeoffs. I will continue using this library because there really aren’t any good alternatives from what I’ve seen, and I don’t want to reinvent the wheel at all. Thanks for all your efforts!

Read more comments on GitHub >

github_iconTop Results From Across the Web

“An account is already registered with your email address ...
I would like the error message “An account is already registered with your email address Please log in.” to let customers log in...
Read more >
Email Address is Already Registered | LinkedIn Help
An email address previously used by another user was re-issued to you by your employer or ISP. You're using a canonical form of...
Read more >
How To Remove “An account is already registered with your ...
Here, we are grabbing the submitted email address and checking if the user already has an account. If they do, we are making...
Read more >
User has already registered with this email address - Reddit
When I tried logging in on it, it says 'user has already registered with this email address' when there's only one account email...
Read more >
What does the error "This email address is already used by ...
Answer · Click the magnifying glass icon in the upper right corner and search for the email address in question. · On the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found