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