Add administrator editing

This commit is contained in:
2016-09-27 11:56:10 -04:00
parent 75b7c02979
commit 3caf0bd766
13 changed files with 207 additions and 59 deletions
@@ -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)