Answer the question
In order to leave comments, you need to log in
How to fill in the :crypted_password field when logging in via Twitter in Sorcery?
User has two attributes: email, crypted_password. When authorizing via Twitter in Sorcery, you can write config.twitter.user_info_mapping = { email: "screen_name" }, but then you can't register, because it complains about the empty crypted_password field. How to proceed?
Answer the question
In order to leave comments, you need to log in
according to the idea, you would separate the User and Provide model, in the first store registered on the site, in the second binding to social networks
User
has_many : providers
Provider
belongs_to :
user , then it is not needed.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question