tap/app/controllers/callbacks_controller.rb
2015-03-20 02:21:56 +01:00

12 lines
292 B
Ruby

class CallbacksController < Devise::OmniauthCallbacksController
def zeuswpi
@user = User.from_omniauth(request.env["omniauth.auth"])
flash[:success] = "Logged in successfuly"
sign_in_and_redirect @user
end
def after_omniauth_failure_path_for(scope)
root_path
end
end