mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
FIX: Display generic descriptor for associated account with no info
This commit is contained in:
@ -4,7 +4,7 @@ class Auth::ManagedAuthenticator < Auth::Authenticator
|
||||
def description_for_user(user)
|
||||
info = UserAssociatedAccount.find_by(provider_name: name, user_id: user.id)&.info
|
||||
return "" if info.nil?
|
||||
info["email"] || info["nickname"] || info["name"] || ""
|
||||
info["email"] || info["nickname"] || info["name"] || I18n.t("associated_accounts.connected")
|
||||
end
|
||||
|
||||
# These three methods are designed to be overriden by child classes
|
||||
|
Reference in New Issue
Block a user