"Improve-product-UI-with-individual-bubbles-and-fix-admin-authentication"

This commit is contained in:
sysadmin
2025-08-28 00:22:27 +01:00
parent 5748ed4a09
commit 7e364b2a44
8 changed files with 171 additions and 4 deletions

View File

@@ -43,7 +43,8 @@ public class AccountController : Controller
var claims = new List<Claim>
{
new(ClaimTypes.Name, "admin"),
new(ClaimTypes.NameIdentifier, Guid.NewGuid().ToString())
new(ClaimTypes.NameIdentifier, Guid.NewGuid().ToString()),
new(ClaimTypes.Role, "Admin")
};
var identity = new ClaimsIdentity(claims, "Cookies");