asp.net2.0中更改Membership 要求的密码强度
使用membership在web.config中的<system.web />配置,类似于
<!-- membership provider -->
<membership defaultProvider="CustomAspNetSqlMembershipProvider">
<providers>
<add name="CustomAspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="CustomAuthSqlConnString"
enablePasswordRetrieval="true"
enablePasswordReset="true"
requiresQuestionAndAnswer="false"
applicationName="/" requiresUniqueEmail="false"
passwordFormat="Clear"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="1" 《--密码最小长度
minRequiredNonalphanumericCharacters="0" 《----密码非字符数字的符合个数
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>