PDA

View Full Version : Comparing 2 password fields


pmait97856
05-22-2009, 06:31 AM
I want to allow users to update their password.

I would like them to repeat the new password in a second password field and compare it to the first before the table gets updated on the server.

ADDT did this automatically, is there a Webassist Behaviour that I can use or does anyone know of another way.

Ray Borduin
05-22-2009, 07:48 AM
You can add a recordset to the page that is filtered by the userID and entered password.

This would return 1 result if the passwords matched and 0 if it did not.

Then you could add Validation Toolkit's Server Validation server behavior to validate that the results returned are greater than 0 using number validation.

Server validation would then also allow you to add a customized error message to the page based on that validation value and would prevent the update on the page where the server validation was applied until it was entered properly.