mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: use the exact name provided by auth provider
Previously we would attempt to titleize it causing names like McDonald's not to work as expected
This commit is contained in:
@@ -73,7 +73,7 @@ class Auth::Result
|
||||
result[:destination_url] = destination_url if destination_url.present?
|
||||
|
||||
if SiteSetting.enable_names?
|
||||
result[:name] = User.suggest_name(name || username || email)
|
||||
result[:name] = name.presence || User.suggest_name(username || email)
|
||||
end
|
||||
|
||||
result
|
||||
|
||||
Reference in New Issue
Block a user