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
1 changed files with 1 additions and 1 deletions

View File

@ -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],