diff options
author | Robin Appelman <robin@icewind.nl> | 2020-10-12 17:48:36 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-10-12 17:48:36 +0200 |
commit | 6158665a33e4edbcf83006e5c1fa2dd7453f09da (patch) | |
tree | a5352efd2e585fb598f51b1d4607a6768690b5a8 | |
parent | b56732b343cf3934b012dfa7db1dd2188b7de198 (diff) |
use prefered username as fallback if no account name is provided
instead of falling back directly to the full account id (@userid@example.com) use the prefered username if available
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | src/components/ProfileInfo.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/ProfileInfo.vue b/src/components/ProfileInfo.vue index 56ce0aa2..a5911fa7 100644 --- a/src/components/ProfileInfo.vue +++ b/src/components/ProfileInfo.vue @@ -137,6 +137,9 @@ export default { if (typeof this.accountInfo.name !== 'undefined' && this.accountInfo.name !== '') { return this.accountInfo.name } + if (typeof this.accountInfo.preferredUsername !== 'undefined' && this.accountInfo.preferredUsername !== '') { + return this.accountInfo.preferredUsername + } return this.account }, accountInfo: function() { |