public PasswordVerificationResult VerifyHashedPassword(string hashedPassword, string providedPassword) { var success = PasswordHasher.CompareHash(providedPassword, hashedPassword); if (success) { return(PasswordVerificationResult.Success); } else { return(PasswordVerificationResult.Failed); } }
public ApplicationPasswordHasher() { // _hasher = Common.Core.Security.PasswordHasher.WithDefaultSettings; _hasher = new PasswordHasher(new PasswordComplexitySettings(0, 0, 0, 0, Int32.MaxValue)); }