12 lines
274 B
Ruby
12 lines
274 B
Ruby
class CallbacksController < Devise::OmniauthCallbacksController
|
|
skip_authorization_check
|
|
|
|
def zeuswpi
|
|
@user = User.from_omniauth(request.env["omniauth.auth"])
|
|
sign_in_and_redirect @user
|
|
end
|
|
|
|
def after_omniauth_failure_path_for(scope)
|
|
root_path
|
|
end
|
|
end
|