diff --git a/app/controllers/users/omniauth_callbacks_controller.rb b/app/controllers/users/omniauth_callbacks_controller.rb index d4e98a2f7a1..a719a14ae0d 100644 --- a/app/controllers/users/omniauth_callbacks_controller.rb +++ b/app/controllers/users/omniauth_callbacks_controller.rb @@ -159,7 +159,7 @@ class Users::OmniauthCallbacksController < ApplicationController name: User.suggest_name(name), username: User.suggest_username(username), email_valid: true , - auth_provider: data[:provider] + auth_provider: data[:provider] || params[:provider].try(:capitalize) } session[:authentication] = { email: @data[:email],