To relax the password rules, you need to (Web site development)

To relax the password rules, you need to edit the Web.config file in your site s root folder. To edit the Web.config file, just double-click its name at (or near) the bottom of Solution Explorer. Initially the file contains some XML tags that look something like this: You need to add some new tags above the closing tag. You must type carefully because even the slightest mistake will prevent your site from working. (In fact, I ll post the exact text in the Chapter 7 section of my Web site at www.coolnerds.com/vwd so you can copy-and-paste rather than type). The exact lines to add above the tag are as follows:
The minRequredPasswordLength setting determines the minimum number of characters required for a password to be valid. I set that to five characters in the example. You can use a different minimum length if you prefer. The minRequiredNonalphanumericCharacters setting determines how many non-alphanumeric characters (punctuation marks) are required. I set that to zero so no punctuation marks are required. The passwordStrengthRegularExpression setting defines a regular expression that could require that the password contain (or not contain) certain characters. By setting that to nothing ( ), as in the example, you allow normal passwords that can contain only text. Figure 7-22 shows how the Web.config file should look after adding the appropriate lines to the file. Notice how the new lines are all together within the and tags. 150 Part II: Building Your Web Site
Note: In case you are looking for affordable webhost to host and run your web application check Vision cheap hosting services

Leave a Reply