Answer the question
In order to leave comments, you need to log in
How to get rid of duplicate users during registration?
For example. User registered via mail and later registered via oauth (eg Twitter). In this case, we get 2 profiles of one user (2 users in the database). How to merge users and profiles?
It may be worth adding protection against such cases and adding the ability to merge profiles to the user. Has anyone encountered a similar problem? How did they decide?
Answer the question
In order to leave comments, you need to log in
It is possible when registering through the social. check the network by email: if a user with this email is already registered, then display a message about the need to authorize on the site through the form and link the social account. networks with his profile.
If the user has different email addresses, then nothing can be done.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question