"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>.