Skip to content

Commit

Permalink
Use username as id for users without Sisu account
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Mar 27, 2023
1 parent 4fea3cd commit c4d56ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/middeware/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const userMiddleware = (req: any, _res: any, next: any) => {
const iamGroups = parseIamGroups(hygroupcn)

const user = {
id,
id: id || username, // Username if no account in Sisu
username,
firstName,
lastName,
Expand Down

0 comments on commit c4d56ef

Please sign in to comment.