View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Changing registration qualifiers

Thread began 1/19/2010 6:05 pm by laldrich374081 | Last modified 2/22/2010 7:57 pm by laldrich374081 | 3710 views | 26 replies

Eric Mittman

The first thing you would want to adjust for this is the spry validation for the password. Toward the bottom of the page is this line of code:

var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {validateOn:["blur"], minChars:6, minNumbers:1, minAlphaChars:1});



It is the three parameters in here that control the character length and type of chars:
minChars:6, minNumbers:1, minAlphaChars:1

You can change the min chars to be whatever you want, then for the other two you can just delete them so in the end it would look like this:

var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {validateOn:["blur"], minChars:5});



Next you would want to update the server side validations that are enforcing these rules. This is controlled by these three lines of code toward the top of the page:

php:
$WAFV_Errors .= WAValidateEL(((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") . "",6,50,true,3);
$WAFV_Errors .= WAValidateRX(((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") . "","/[0-9]/",true,4);
$WAFV_Errors .= WAValidateRX(((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") . "","/[a-z,A-Z]/",true,5);



The first one is checking the length and the next two are checking the type of chars. You can update the first to be a 5 instead of 6 then delete the next two, this would look like this:

php:
$WAFV_Errors .= WAValidateEL(((isset($_POST["UserPassword"]))?$_POST["UserPassword"]:"") . "",5,50,true,3);

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...