Password verification for ASP. NET 2.0 user registration controls

Source: Internet
Author: User

This problem occurs.

This is the createuserwizard control. If you enter the password, the following error message is returned:

"The minimum password length is 7, which must contain the following non-alphanumeric characters: 1 .".

However, if you enter 1 and the password length is greater than 7 characters, this problem still exists. Why?


The northern Archer found the answer.

I also checked msdn to find a method to change the verification rules:

Modify attributes of the edge configuration section


1 < Membership >
2 < Providers >
3 < 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 = ""   />
4 </ Providers >
5
6 </ Membership >

Where
Minrequiredpasswordlength= "7"-- Minimum Password Length
Minrequirednonalphanumericcharacters= "1"-- Number of non-letter characters included
Passwordstrengthregularexpression= ""-- Regular Expression used to determine the password strength

Change the password verification policy.

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.