Browse Source

uniform calls

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
3fd516c2b2
  1. 2
      app/controllers/users/omniauth_callbacks_controller.rb

2
app/controllers/users/omniauth_callbacks_controller.rb

@ -23,7 +23,7 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
else raise "Bad provider data: #{auth.inspect}"
end
if !user
if user.nil?
user = User.new(user_attrs.merge(password: Devise.friendly_token[0,20]))
user.skip_confirmation!
user.save!(validate: false)

Loading…
Cancel
Save