How to change the password complexity
1. Select the password complexity you would like. Here is a reference guide- Regular Expression Cheat Sheet
Searching for regular expression complexity results in many different reference articles.
2. Enter the ‘passwordStrengthRegularExpression’ in the Portal web.config, in the <providers> tag for “PortalMembership”. Below is an example:
<membership defaultProvider="PortalMembership">
<providers>
<clear />
<add name="PortalMembership" passwordStrengthRegularExpression="(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\w]){10,20}" description="Users Stored in the Portal Database" type="Passageways.Portal.Web.PortalMembershipProvider, Passageways.Portal.Web" />
</providers>
</membership>
Explanation of Regular expression used in example:
passwordStrengthRegularExpression="(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[\w]){10,20}"
This password requires the following:
1. It must be 10 characters or larger and a max of 20.
2. It must contain a mix of at least one of each of the following:
a. Uppercase alpha character (A, B, C, etc.)
b. Lower case alpha character (a, b, c, etc.)
c. Number (1, 2, 3, etc.)
d. Symbol (*, #, $, etc.)
Comments
0 comments
Please sign in to leave a comment.