Name |
Description |
Name |
Providers name |
Type |
Type. The SQL format is system. Web. Security. sqlmembershipprovider. |
Connectionstringname |
Connection string name |
Enablepasswordretrieval |
Whether to allow users to retrieve their passwords (useless things, conflicting with the Mechanism) is usually false |
Enablepasswordreset |
Allow users to reset their passwords |
Requiresquestionandanswer |
Whether to ask the user to answer the password prompt question during password reset and Retrieval |
Applicationname |
Identify an applicationProgramUnique users with the same user name can correspond to multiple ASP. NET applications with the specified applicationname |
Requiresuniqueemail |
Whether the user email is required to be unique |
Passwordformat |
Password encryption method, three values: clear --> not encrypted, hashed --> hash encryption, encrypted |
Maxinvalidpasswordattempts |
Maximum number of login attempts, locked upon failure |
Minrequiredpasswordlength |
Minimum Password Length |
Minrequirednonalphanumericcharacters |
Number of special characters in the password |
Passwordattemptwindow |
Maximum number of Logon times, in minutes |
Passwordstrengthregularexpression |
Regular Expression in password format |
The Web. config file is added as follows: < Connectionstrings >
< Clear />
< Add Name = "Localsqlserver" Connectionstring = "" />
</ Connectionstrings >
< System . Web >
< Membership >
< Providers >
< Clear />
< Add Name = "Custommembershipprovider"
Type = "System. Web. Security. sqlmembershipprovider"
Connectionstringname = "Localsqlserver"
<! -- Other attributes -- >
/>
</ Providers >
</ Membership >
</ System. Web >