Error message:
The password must have a minimum length of 7 and must contain the following non-alphanumeric characters: 1
Solution:
The above message is mainly generated when creating a user. It will also be generated when creating a user using the Asp.net website management tool.
The main reason is that the password input does not meet the requirements. When you want to change the above regulations, there are two main methods:
1. All sites change.
Find the machine.config file
<membership>
<providers>
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="7"
minRequiredNonalphanumericCharacters="1"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>
There are two attributes in it, one is minRequiredPasswordLength, which means the longest password, the default is 7, and the other is minRequiredNonalphanumericCharacters, which defaults to 1, which means there is at least one non-alphabetic character, just change it to 0.
2. If it is only for a certain site, just modify the value of web.config and it will be OK. Modify it as above and insert the above code under <system.web> and it will be OK.
If you want to change the password rule to "at least 6 characters, no special characters", as follows:
(Note: Be sure to add <remove name="AspNetSqlMembershipProvider" />, otherwise an error message "The item "AspNetSqlMembershipProvider" has been added" will be prompted)
<membership>
<providers>
<remove name="AspNetSqlMembershipProvider" />
<add name="AspNetSqlMembershipProvider"
type="System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="LocalSqlServer"
enablePasswordRetrieval="false"
enablePasswordReset="true"
requiresQuestionAndAnswer="true"
applicationName="/"
requiresUniqueEmail="false"
passwordFormat="Hashed"
maxInvalidPasswordAttempts="5"
minRequiredPasswordLength="6"
minRequiredNonalphanumericCharacters="0"
passwordAttemptWindow="10"
passwordStrengthRegularExpression="" />
</providers>
</membership>
http://www.cnblogs.com/pyt5208/archive/2006/07/28/462157.html