Fix the missing {{provider}} value message
This commit is contained in:
parent
13b0b874fb
commit
3ca2d92b2f
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue