Answer the question
In order to leave comments, you need to log in
Login to website with Facebook Oauth?
There is a site where you can register via e-mail or log in using fb / vk.
If the user logs in via FB, then FB transmits the user's mail and it can be written to the database in order to be used in some further advertising mailings. Through VK mail is not given.
This is where the question arises: a
person first registered via e-mail, and then decided to log in via FB.
Mail comes from FB and we see that the user with this e-mail is already in the database.
How to guide the user further?
1) Silently log in and bind FB-id to the user with this mail.
2) Say that the user with this e-mail is registered and offer to enter a password.
3) Keep fb_email in a separate column and just create a new user.
I note that FB does not allow logging in to third-party services if the mail in the FB itself is not confirmed.
Answer the question
In order to leave comments, you need to log in
4) Say that there is already a user with this email. Suggest a merge. If you agree, ask for a password. If you refuse, ask for a different email address and create a new user.
One email - one user. Silently it is better not to do. I chose the second option.
In my services, I always merge silently (binding by e-mail). Most of the inhabitants will be glad that the service thought for them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question