tap/app/controllers/callbacks_controller.rb
2015-03-19 22:37:16 +01:00

7 lines
195 B
Ruby

class CallbacksController < Devise::OmniauthCallbacksController
def zeuswpi
@user = User.from_omniauth(request.env["omniauth.auth"])
@user.save
sign_in_and_redirect @user
end
end