mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 03:09:29 +08:00
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),
|
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],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user