private bool ValidatePasswordWithoutNotification(string password)
{
if (string.IsNullOrWhiteSpace(password) || password.Length < this.MinRequiredPasswordLength
|| password.Length > this.MaxPasswordLength)
{
return false;
}
var count = password.Where((t, i) => !char.IsLetterOrDigit(password, i)).Count();
if (count < this.MinRequiredNonAlphanumericCharacters)
{
return false;
}
if (this.PasswordStrengthRegularExpression.Length > 0)
{
if (!Regex.IsMatch(password, this.PasswordStrengthRegularExpression))
{
return false;
}
}
return true;
}