Task IUserPasswordStore <AppUser, string> .SetPasswordHashAsync(AppUser user, string passwordHash) { MyPasswordHasher hashedpassword = new MyPasswordHasher(); user.UserPassword = hashedpassword.HashPassword(user.UserPassword); return(Task.FromResult(user.UserPassword)); }
public string HashPassword(string password) { return(MyPasswordHasher.Encrypt(password, true)); }