Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You create a separate table for information about users from social networks. networks.
authusers
id - received from VK
userid - your users.
And your table.
users
id - your user.
If the user first came to your site, then create an internal (your) user and an entry in authusers, where you link yours and from the social. networks.
Further you work, as with your normal user.
If the user logs in through the social. network, then check if there is one by VK-ID, get your user ID and then work with yours.
you create an additional field, you store the id there, but the rest is the same as with normal authorization
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question