Add ASP.NET Identity (cookie auth) and role seeding
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
namespace backend.Auth;
|
||||
|
||||
public static class Roles
|
||||
{
|
||||
public const string Admin = "Admin";
|
||||
public const string User = "User";
|
||||
|
||||
public static readonly string[] All = { Admin, User };
|
||||
}
|
||||
Reference in New Issue
Block a user