Skip to content

Commit

Permalink
fix(user): set website to only show username and not private name bui…
Browse files Browse the repository at this point in the history
…ld_image
  • Loading branch information
brucetony committed Oct 17, 2024
1 parent c3099f4 commit 6ce5457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/KeycloakAuth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const { loggedIn, user, login, logout } = useOidcAuth();
<template>
<div class="keycloakLoginButton">
<div v-if="loggedIn">
<h3>Welcome {{ user.userInfo?.preferred_username || "Friend" }}!</h3>
<h3>Welcome {{ user.userName || "Friend" }}!</h3>
<Button @click="logout()" severity="warning" outlined>Logout</Button>
</div>
<div v-else>
Expand Down
2 changes: 1 addition & 1 deletion components/login/AvatarButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const toggle = (event) => {
<div v-if="loggedIn" class="authAvatarSection">
<div class="usernameMenuBar">
<p>
{{ user.userInfo?.name || "Swell Person" }}
{{ user.userName || "Swell Person" }}
</p>
</div>
<Button
Expand Down

0 comments on commit 6ce5457

Please sign in to comment.