From 3ca2d92b2fa52f513a832214506b4e60323600a1 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Tue, 19 Feb 2013 16:27:38 -0500 Subject: [PATCH] Fix the missing {{provider}} value message --- app/controllers/users/omniauth_callbacks_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],