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