title: asp.net membership how to restrict password property while creating new user/changing password?
body: <p>I want to restrict password strength with below mentioned properties::
  Password strength:</p>
  
  <ul>
  <li>1.Contain characters from three of the following four categories:</li>
  </ul>
  
  <p>English uppercase characters (A through Z)<br/>
  English lowercase characters (a through z)<br/>
  Base 10 digits (0 through 9)<br/>
  Non-alphabetic characters (for example, !, $, #, %)<br/></p>
  
  <ul>
  <li>2.<strong>password Not contain the user's account name</strong></li>
  </ul>
  
  <p><br/>I can easily achieve 1st condition by providing regex to <code>PasswordStrengthRegularExpression</code> attribute in web.config file under membership section<br/>But the problem is with 2nd one(password Not contain the user's account name) what should i do to achieve that.</p>