Exemplo n.º 1
0
 public bool ValidatesLowerAlphas(uint minLowerAlphas, string password)
 {
     var policy = new BasicPasswordPolicy
     {
         LowerAlphas = minLowerAlphas
     };
     return policy.ValidatePassword(password);
 }
Exemplo n.º 2
0
 public bool ValidatesNonAlphaNumerics(uint minNonAlphas, string password)
 {
     var policy = new BasicPasswordPolicy
     {
         NonAlphaNumerics = minNonAlphas
     };
     return policy.ValidatePassword(password);
 }
Exemplo n.º 3
0
 public bool ValidatesMinLength(uint minLength, string password)
 {
     var policy = new BasicPasswordPolicy
     {
         MinLength = minLength
     };
     return policy.ValidatePassword(password);
 }