added frontend method to retrieve and send token to user's email address.

This commit is contained in:
DESKTOP-GENO133\IvanPlex
2024-02-28 15:02:54 -07:00
parent acc3d2f6d0
commit 9091b3d2a8
2 changed files with 24 additions and 1 deletions

View File

@@ -121,6 +121,7 @@ namespace CarCareTracker.Middleware
{
new(ClaimTypes.Name, authCookie.UserData.UserName),
new(ClaimTypes.NameIdentifier, authCookie.UserData.Id.ToString()),
new(ClaimTypes.Email, authCookie.UserData.EmailAddress),
new(ClaimTypes.Role, "CookieAuth")
};
if (authCookie.UserData.IsAdmin)