2015-03-19 21:37:16 +00:00
|
|
|
class CallbacksController < Devise::OmniauthCallbacksController
|
2015-08-31 12:33:15 +00:00
|
|
|
skip_authorization_check
|
|
|
|
|
2015-03-19 21:37:16 +00:00
|
|
|
def zeuswpi
|
|
|
|
@user = User.from_omniauth(request.env["omniauth.auth"])
|
2015-03-23 10:54:15 +00:00
|
|
|
sign_in_and_redirect @user
|
2015-03-19 21:37:16 +00:00
|
|
|
end
|
2015-03-20 01:21:56 +00:00
|
|
|
|
|
|
|
def after_omniauth_failure_path_for(scope)
|
|
|
|
root_path
|
|
|
|
end
|
2015-03-19 21:37:16 +00:00
|
|
|
end
|