1
0
Fork 0

Confirm user from OmniAuth

This commit is contained in:
Alex Kotov 2018-12-04 08:20:37 +05:00
parent e37a2f67dc
commit b0802cb46a
No known key found for this signature in database
GPG key ID: 4E831250F47DE154

View file

@ -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(