WORKAROUND: C # password Minimum length is 7, which must contain the following non-alphanumeric characters: 1

Source: Internet
Author: User
Tags alphabetic character alphanumeric characters

Solution One:

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

One of the "1" is not specific to the number 1, but includes some special characters, such as [email protected]#$%^&* () _+, casually enter a OK.

Solution Two:

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

(Password length minimum:7. Non-alphanumeric characters required:1.)

The above message is generated when the user is created, and is created when the user is manage with the ASP. NET Web site.

The main is the password input does not meet the requirements, to change the above provisions, there are two main methods:

1. All sites are changed.

Locate the Machine.config profile file

<membership>

<providers>

<add

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, one is minrequiredpasswordlength, meaning the shortest password length, the default is 7

The other is minrequirednonalphanumericcharacters, which defaults to 1, meaning that there is at least one non-alphabetic character, just change it to 0.

2. If it is just for a site, just modify the value of the Web. config is ok

Modify as above, insert the above code in <system.web> below OK.

WORKAROUND: C # password Minimum length is 7, which must contain the following non-alphanumeric characters: 1

Related Article

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.