Skip to content

Commit

Permalink
back up displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherJMiller committed Jan 12, 2024
1 parent 6c8e711 commit b7e02c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/users/user.entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class User {
static fromJwt(jwt: ReallianceIdJwt): User {
return {
id: jwt.sub,
displayName: jwt.name,
displayName: jwt.name ?? jwt.preferred_username,
username: jwt.preferred_username,
groups: [],
admin: jwt.groups?.includes('Community Admin') ?? false,
Expand Down

0 comments on commit b7e02c5

Please sign in to comment.