[eluser]sqwk[/eluser]
Code:
$this->form_validation->set_rules('new_password', 'Neues Password', 'matches[new_password_repeat]');
I have a rule that checks whether a password field is the same as a password_repeat field. However, since it is being used in the contect of a "Update your Profile" Page, the password field can sometimes be empty. In that case the form does not validate, however, no error messages are shown.
How can I tell CI to only check if the two fields match if the first field is actually filled in?