Inheritance: Microsoft.AspNet.Identity.PasswordHasher, IUserKeyService
Exemple #1
0
 public AccountService(UserManager<ApplicationUser> userManager, RoleManager<IdentityRole> roleManager,
     IEmailService emailService)
 {
     _userManager = userManager;
     _roleManager = roleManager;
     _userKeyService = new UserKeyService();
     _emailService = emailService;
 }
 public static bool UserKeyValid(this ApplicationUser user, string key)
 {
     var userKeyService = new UserKeyService();
     return userKeyService.VerifyKeys(user.UserKeyHash, key.Trim());
 }