Fix the missing {{provider}} value message

This commit is contained in:
Neil Lalonde 2013-02-19 16:27:38 -05:00
parent 13b0b874fb
commit 3ca2d92b2f

View File

@ -159,7 +159,7 @@ class Users::OmniauthCallbacksController < ApplicationController
name: User.suggest_name(name), name: User.suggest_name(name),
username: User.suggest_username(username), username: User.suggest_username(username),
email_valid: true , email_valid: true ,
auth_provider: data[:provider] auth_provider: data[:provider] || params[:provider].try(:capitalize)
} }
session[:authentication] = { session[:authentication] = {
email: @data[:email], email: @data[:email],