mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
Fix the missing {{provider}} value message
This commit is contained in:
parent
13b0b874fb
commit
3ca2d92b2f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue