close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

New Orders and Password

Thread began 11/20/2009 6:33 pm by terry164844 | Last modified 12/11/2009 8:39 pm by terry164844 | 1822 views | 11 replies

Eric Mittman

Ok, you can just remove the validations on the password field on your confirm pages. The validations that you will need to remove are just the spry validations, they will look like this in your page:

<script type="text/javascript">
var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1", {validateOn:["blur"], minAlphaChars:1, minNumbers:1, minChars:6});
var spryconfirm1 = new Spry.Widget.ValidationConfirm("spryconfirm1", "UserPassword2", {validateOn:["blur"]});

This will allow the user to enter a password and still have the regular validation occur if a password is entered. If a password is not entered it will not stop the user from proceeding.

The next part of this would be to create a new random password for the user and set that for them. You can use this code to create a new random password for the user:

if (!session_id()) session_start();
$_SERVER["REQUEST_METHOD"] == "POST") && (isset($_SERVER["HTTP_REFERER"]) && strpos(urldecode($_SERVER["HTTP_REFERER"]), urldecode($_SERVER["SERVER_NAME"].$_SERVER["PHP_SELF"])) > 0) && isset($_POST) && !(isset($_POST["UserPassword"])))     {
$_SESSION["NewUserRandomPassword"] = "".(WA_RandomPassword(20truetruetrue""))  ."";

The final part would be to alter the code that is inserting or updating the user, this code has a line in it that sets the value of the user password. This part will need to be updated from this:


To this:


This is kind of a custom work around for this and it may not be very easy to implement but these steps should get you the result you are looking for. Before you attempt any part of this you should make sure to backup your confirm page so that you can get back to it if you need to. Let me know if you have any problems with any of this and I will help you with what I can.

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





Ease of use


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...