Added a password rule engine
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Bitvault;
|
||||
|
||||
public class LengthRule :
|
||||
IPasswordRule
|
||||
{
|
||||
public int CalculateScore(string password) =>
|
||||
password.Length >= 8 ? 5 : 0;
|
||||
}
|
||||
Reference in New Issue
Block a user