tab/app/controllers/callbacks_controller.rb

10 lines
269 B
Ruby
Raw Normal View History

class CallbacksController < Devise::OmniauthCallbacksController
def zeuswpi
@user = User.from_omniauth(request.env["omniauth.auth"])
2018-06-20 16:02:33 +00:00
sign_in_and_redirect @user, event: :authentication
end
def after_omniauth_failure_path_for(scope)
root_path
end
2018-06-20 16:02:33 +00:00
end