Summary
In the previous article, we note that when registering a user, you must use a strong password, that is, not less than 7 bits in length, including at least a non-numeric character, many friends find this very inconvenient, do not know can be changed to a simple password on the line?
This article describes how to troubleshoot the problem of allowing users to be registered with a simple password.
Body
In Microsoft's AspNetSqlMembershipProvider, password rules are controlled primarily by minRequiredPasswordLength and minrequirednonalphanumericcharacters two parameters control. In which, minRequiredPasswordLength control password length, defaults to 7;minrequirednonalphanumericcharacters set number of Non-numeric characters, default is 1. Therefore, to implement a user that allows you to register with a simple password, you need to change the values of these two parameters.
The procedures for each step are recorded below.
1, first open the previous form certification to create the project, find and open the Web.config file.
Add the following in the <system.web>......</system.web> section:
1 <membership>
2 <providers>
3 <clear/>
4 <add name= "AspNetSqlMembershipProvider"
5 connectionstringname= "LocalSqlServer"
6 minrequiredpasswordlength= "4"
7 minrequirednonalphanumericcharacters= "0"
8 type= "System.Web.Security.SqlMembershipProvider, system.web, version=2.0.0.0, Culture=neutral, publickeytoken= b03f5f7f11d50a3a "/>
9 </providers>
Ten </membership>