From b7e02c5f5a6b9e83c9b4dcf4eee5c4264e9e6678 Mon Sep 17 00:00:00 2001 From: Chris Miller Date: Thu, 11 Jan 2024 22:43:22 -0500 Subject: [PATCH] back up displayName --- api/src/users/user.entity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/users/user.entity.ts b/api/src/users/user.entity.ts index b5e4e50c..412ec521 100644 --- a/api/src/users/user.entity.ts +++ b/api/src/users/user.entity.ts @@ -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,