Add administrator editing
This commit is contained in:
@@ -2,11 +2,21 @@ using System;
|
||||
using System.Threading.Tasks;
|
||||
using InventoryTraker.Web.Core;
|
||||
using Microsoft.AspNet.Identity;
|
||||
using Microsoft.AspNet.Identity.EntityFramework;
|
||||
using Microsoft.AspNet.Identity.Owin;
|
||||
using Microsoft.Owin.Security.DataProtection;
|
||||
|
||||
namespace InventoryTraker.Web.Identity
|
||||
{
|
||||
public class ApplicationRoleManager : RoleManager<IdentityRole>
|
||||
{
|
||||
public const string AdminRoleName = "Admin";
|
||||
|
||||
public ApplicationRoleManager(IRoleStore<IdentityRole, string> store) : base(store)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
public class ApplicationUserManager : UserManager<User>
|
||||
{
|
||||
public ApplicationUserManager(IUserStore<User> store, IDataProtectionProvider dataProtectionProvider)
|
||||
|
||||
Reference in New Issue
Block a user