Binding a password and confirmPassword field
I have a form that allows the user to edit their profile ( username, email, password ). In the case of the password I only want to bind the password field to the command object when the confirmPassword field is also provided. When password and confirmPassword are left blank I would like NO binding to take place for the password on the command object.
The primary motivation is to only update a user's password when both password and confirmPassword are supplied.