123456789101112131415161718192021 |
- # frozen_string_literal: true
- class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
- def all
- user = User.from_omniauth(request.env['omniauth.auth'], current_user)
- if user.persisted?
- sign_in_and_redirect(user)
- else
- redirect_to root_path
- end
- end
- alias twitter all
- alias mastodon all
- def failure
- redirect_to root_path
- end
- end
|