V
V
V2015-02-26 01:02:05
Ruby on Rails
V, 2015-02-26 01:02:05

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

1 answer(s)
R
Renat Ibragimov, 2015-02-26
@MpaK999

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 question

Ask a Question

731 491 924 answers to any question