Rename methods to avoid confusion between OAuth and OmniAuth

This commit is contained in:
Claire
2024-02-09 15:24:17 +01:00
parent 71120631d8
commit bfba788358
5 changed files with 17 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ class Auth::OmniauthCallbacksController < Devise::OmniauthCallbacksController
def self.provides_callback_for(provider)
define_method provider do
@provider = provider
@user = User.find_for_oauth(request.env['omniauth.auth'], current_user)
@user = User.find_for_omniauth(request.env['omniauth.auth'], current_user)
if @user.persisted?
record_login_activity