Наследование: Microsoft.AspNet.Identity.PasswordHasher, IUserKeyService
Пример #1
0
 public AccountService(UserManager<ApplicationUser> userManager, RoleManager<IdentityRole> roleManager,
     IEmailService emailService)
 {
     _userManager = userManager;
     _roleManager = roleManager;
     _userKeyService = new UserKeyService();
     _emailService = emailService;
 }
Пример #2
0
 public static bool UserKeyValid(this ApplicationUser user, string key)
 {
     var userKeyService = new UserKeyService();
     return userKeyService.VerifyKeys(user.UserKeyHash, key.Trim());
 }