Skip email validation for omniauth-twitter on devise 2.0

后端 未结 4 1260
Happy的楠姐
Happy的楠姐 2020-12-08 22:01

I\'m using devise 2.0 and gem omniauth-twitter

The problem is that twitter does not send an email in response, so the model user of my application validates that the

4条回答
  •  天命终不由人
    2020-12-08 22:41

    I am facing the same problem, Twitter doesn't give you the email via oauth, you have to think in another way to obtain the email. The only solution that I figured out, is override the callback and use the twitter data to autocomplete a form and give the user the chance to complete his mail by himself and then sign up and save the user in the database.

    Look the following question:

    Is there a way to get an user's email ID after verifying his/her Twitter identity using OAuth?

提交回复
热议问题