"Improve-product-UI-with-individual-bubbles-and-fix-admin-authentication"
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user