I want to enable users to edit their account - and if they specify a new password update it.
To ensure the correct spelled password, I used the identical validator with a second field. This works while creating a new user, but while editing I faced the following problem:
The password field can be empty and therefore is not required. Since the password-repeat field can be empty as well (just because of you don't need to change the password or fill the password field), I am not required to retype the password in this field if there is any value in the password field.
If I submit an empty password field (not required) and a required password-repeat field, I get the error to please fill the password-repeat field.
How can I enforce the identical validator to be checked but accept empty values if there is no value in the token?