trichards57 / zxcvbn-cs

C#/.NET port of Dan Wheeler/DropBox's Zxcvbn JS password strength estimation library
MIT License
59 stars 18 forks source link

user_input dictionary match has no effect on the evaluated score #40

Open xamplum opened 1 year ago

xamplum commented 1 year ago

Hi,

This test failes:

[Fact]
public void TestWithUserInput()
{
     var result = Zxcvbn.Core.EvaluatePassword("weberweber1", new List<string> { "weber" });
     result.MatchSequence.Should().Contain(x => x.GetType() == typeof(DictionaryMatch));
}

The Score is 2 with or without the user_input.

react-password-strength-bar (which uses dropbox/zxcvbn) returns a "weak" scoring 1. That is actually the appropriate result. Does anyone have an idea why I get a scoring of 2 instead of 1?