:: Professional ::
 
You are here: Blog
 

Hilbert Solutions, LLC Latest Dotnetnuke Modules...

Advanced News Ticker        Constant Contact Sign Up

 

Blog
Sep15

Written by:slhilbert
9/15/2008 8:24 AM 

I recently had a client who had very precise requirements on passwords.   They wanted each password to be at least 8 characters long and contain at least one capital and one lower case alphabetic character, as well as at least on enumeric and one special character.

Dotnetnuke can handle all of these requirements but it took some researching to figure out how to exactly implement the changes.  

For all of these changes we are heading to the web.config for your Dotnetnuke install.

Locate the line of the configuration that starts with

We are going to modify the properties and add some additional properties for our needs.

First we are going to set the minRequiredPasswordLength="8" because that will meet the needs for each password to be at least 8 characters long.

Then we change minRequiredNonalphanumericCharacters="1" to 1 becuase that indicates we require at least one special character.

Finally, we add a regular expression that meets the other requirements passwordStrengthRegularExpression="(?=^.{6,10}$)(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+}{":;'?/>.<,])(?!.*\s).*$"

This property doesn't exist in the DNN web.config but can be added.  For information on the regular expression.  For more information on the regular expression please visit the following link http://davidhayden.com/blog/dave/archive/2004/09/25/501.aspx

 

 

Tags:

2 comment(s) so far...

Re: Dotnetnuke Strong Passwords Using Regular Expressions

Very nice. Thanks a lot!

By Dan on  10/30/2008 7:10 PM

Re: Dotnetnuke Strong Passwords Using Regular Expressions

No problem, glad it was useful to you!

By Stuart on  10/30/2008 9:17 PM

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment  Cancel 
Search Blog
Blog Archive
Terms Of Use| Privacy Statement Hilbert Solutions, LLC Since 2007