Skip to content

Commit

Permalink
Don't add photo to cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Dec 15, 2024
1 parent 3e1dd6d commit 8720d7e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EmployeeUnlockDoor/Pages/UnlockDoor/UnlockDoor.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public async Task<IActionResult> OnPostAsync()
new Claim("GivenName", credentialData!.Employee.GivenName, ClaimValueTypes.String, "damienbodsharepoint"),
new Claim("Mail", credentialData!.Employee.Mail, ClaimValueTypes.String, "damienbodsharepoint"),
new Claim("Surname", credentialData!.Employee.Surname, ClaimValueTypes.String, "damienbodsharepoint"),
new Claim("Photo", credentialData!.Employee.Photo, ClaimValueTypes.String, "damienbodsharepoint"),
// photo in cache results in to big a cookie
// new Claim("Photo", credentialData!.Employee.Photo, ClaimValueTypes.String, "damienbodsharepoint"),
new Claim("DoorCode", credentialData!.DoorCode, ClaimValueTypes.String, "damienbodsharepoint"),
};

Expand Down

0 comments on commit 8720d7e

Please sign in to comment.