mirror of
https://github.com/discourse/discourse.git
synced 2025-01-30 15:46:16 +08:00
DEV: Handle both name formats in managed authenticator (#7925)
This commit is contained in:
parent
02e27b5cff
commit
47ad2a4d7a
|
@ -85,7 +85,7 @@ class Auth::ManagedAuthenticator < Auth::Authenticator
|
|||
result = Auth::Result.new
|
||||
info = auth_token[:info]
|
||||
result.email = info[:email]
|
||||
result.name = "#{info[:first_name]} #{info[:last_name]}"
|
||||
result.name = info[:first_name] && info[:last_name] ? "#{info[:first_name]} #{info[:last_name]}" : info[:name]
|
||||
result.username = info[:nickname]
|
||||
result.email_valid = primary_email_verified?(auth_token) if result.email
|
||||
result.extra_data = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user