public void Initialize()
 {
     _context     = GreenspotIdentityDbContext.Create();
     _userManager = new GreenspotUserManager(new MySqlUserStore <GreenspotUser>(_context));
     _roleManager = new RoleManager <IdentityRole>(new MySqlRoleStore <IdentityRole>(_context));
 }
Пример #2
0
 public AccountController(GreenspotUserManager userManager, GreenspotSignInManager signInManager)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
 }