Answer the question
In order to leave comments, you need to log in
How to make authorization through a social network in the dektrium/yii2-user module without requesting mail?
Good afternoon.
I use the dektrium/yii2-user module in the project.
It has the functionality of logging in through the social network, but e-mail is required from the social network. Often the social network does not give it away (or it is not listed in the profile) and then the module prompts the user to enter an email on their own.
Is it possible to disable the email request in this module?
Who does not have an email in VK, please test the authorization here rub.sunbrains.com
Thank you
Answer the question
In order to leave comments, you need to log in
Surely there is a possibility. You need to disassemble the module and see what and where. But you still have to edit the user model and the problem of user identification remains. The user can be 1 and he has several social networks, email is the link. So 1 line of code is not enough here.
As an option, there is a ulogin service through which authorization can be carried out. They return their internal user id, then you can not use mail. I think it will be easier in the end.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question