Confirm user from OmniAuth
This commit is contained in:
parent
e37a2f67dc
commit
b0802cb46a
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
|
|||
|
||||
user = User.where(email: auth.info.email).first_or_create! do |new_user|
|
||||
new_user.password = Devise.friendly_token[0, 20]
|
||||
new_user.confirmed_at = Time.zone.now
|
||||
end
|
||||
|
||||
UserOmniauth.where(
|
||||
|
|
Reference in a new issue