ValidateUserPasswordForm

A form that collects user data needed when requesting a new password

The form contains the userName and validateField of the user requesting a new password.

When a new password is created, the password will be available in the password-property of the form.

The form validates that user actually is a user and that both the username and emailaddress entered is the same as the one defined in the user itself before resetting the password. If this validation is not performed, it is possible for whoever to reset a password for whoever user.

If it's required to validate another field than the emailaddress, create a new subclass and override method protected boolean hasValidField(Person p)

Struts config
<form-bean
  name="com.escenic.profile.presentation.struts.ValidateUserPasswordForm"
  type="com.escenic.profile.presentation.struts.ValidateUserPasswordForm"/>
Action Error

This form requires that userName and validateField is set. If missing, the user should be notified.

no_userName

(On the userName property.) The userName was not specified

no_email

(On the validateField property.) The validateField was not specified

nameAndMailDoesNotMatch

(On the global property.) The validateField was not specified

ValidateUserPasswordForm inherits properties from:

  • com.escenic.profile.presentation.struts.PasswordForm

It has no properties of its own.