Step by step SharePoint 2007 of 18: Troubleshoot issues that allow users to be registered with a simple password

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.