Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Using the Edit and Confirm Password components with D2W

These are two useful and easy to configure components to use in your sign up pages with D2W.
You will get your typical sign up page where the user enters their password twice to confirm that they typed what they intended:
Image Added

The configuration:

1. Set up a dummy propertyKey for your Password Confirm field since it won't be a real attribute in your database (in this case "confirmPassword":

No Format

100 : pageConfiguration = 'SignUpPerson' => displayPropertyKeys = ("login", "email", "password", "confirmPassword") [com.webobjects.directtoweb.Assignment]

2. Make sure that you include both components on the page - one for the password propertyKey and the other for the confirmation propertyKey

No Format

100 : (pageConfiguration = 'SignUpPerson' and propertyKey = 'password') => componentName = "ERDEditPassword" [com.webobjects.directtoweb.Assignment]
100 : (pageConfiguration = 'SignUpPerson' and propertyKey = 'confirmPassword') => componentName = "ERDEditPasswordConfirmation" [com.webobjects.directtoweb.Assignment]

3. Set the property for ERDEditPassword passwordConfirmationValidated to true:

No Format

 
100 : (pageConfiguration = 'SignUpPerson' and propertyKey = 'password') => passwordConfirmationValidates = "true" [com.webobjects.directtoweb.BooleanAssignment]