Answer the question
In order to leave comments, you need to log in
How to register a user from VK on devise?
I read the forum and did not find similar questions. Rails 4+ devise 3 + omniauth. To begin with, I will try to get by with a description of the issue in a general form without code. The following was implemented: Classic registration (email+password) without email confirmation. Then added an entrance (+ automatic registration at the first entrance) through VK, twitter and facebook. Now I don’t remember exactly, but only twitter sends email, the other two networks hide the user’s soap. I managed then by stuffing something like [email protected]+provider+.ru into the email field
Unique non-existent emails were obtained, for example, [email protected], [email protected], etc.). After the expiration of time, it took real addresses from users. Enabled confirmation on devise. Classic registration works with a bang. The user registers - a letter with a token is sent to the soap. He follows the link - the account is confirmed and the user can log in. Then, on the user settings form, he can change the mail - the letter is sent to a new email again. The old one is not overwritten in the database yet. As soon as the user confirms a new email, the device updates the record in the database and the email becomes different. Now the main problem. I'm trying to log in through social networks - an entry is created in the database with a non-existent email. A confirmation email is sent to it, meanwhile the usercannot access my site under his account until he confirms it. Thus, he cannot log in and set a new email - real and subsequently confirm it.
Once again what I need.
Answer the question
In order to leave comments, you need to log in
In, it looks like what I need))
# ==> Configuration for :confirmable
# A period that the user is allowed to access the website even without
# confirming his account. For instance, if set to 2.days, the user will be
# able to access the website for two days without confirming his account,
# access will be blocked just in the third day. Default is 0.days, meaning
# the user cannot access the website without confirming his account.
config.allow_unconfirmed_access_for = 2.days
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question