How to solve the "minimum password length is 7, which must contain the following non-alphanumeric characters 1 ″

Source: Internet
Author: User
Tags alphanumeric characters
"The minimum password length is 7, which must contain the following non-alphanumeric characters: 1" means that there must be at least one non-alphanumeric character,
Please use ~! @ # $ % ^ & * () _ +, Just give it a try!

Solution 2:

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 messages are mainly generated when you create a user, and will also be generated when you create a user using Asp.net web site manage.

There are two main methods to change the above rules:

1. All sites are changed.
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> contains two attributes: minrequiredpasswordlength, which indicates the longest password. The default value is 7, and minrequirednonalphanumericcharacters. The default value is 1, which indicates at least one non-letter character, you only need to change it to 0.

2. If you only want to modify the Web. config value for a website, it will be OK.
Modify the code above and insert it under <system. Web>.

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.