Пример #1
0
 public bool ValidatesLowerAlphas(uint minLowerAlphas, string password)
 {
     var policy = new BasicPasswordPolicy
     {
         LowerAlphas = minLowerAlphas
     };
     return policy.ValidatePassword(password);
 }
Пример #2
0
 public bool ValidatesNonAlphaNumerics(uint minNonAlphas, string password)
 {
     var policy = new BasicPasswordPolicy
     {
         NonAlphaNumerics = minNonAlphas
     };
     return policy.ValidatePassword(password);
 }
Пример #3
0
 public bool ValidatesMinLength(uint minLength, string password)
 {
     var policy = new BasicPasswordPolicy
     {
         MinLength = minLength
     };
     return policy.ValidatePassword(password);
 }