Here's my scenario: I'm creating a password change page. the real field that holds the password is User.password
On the password create page, I used 3 made up fields: $form->input('User.old_passwd'); $form->input('User.new_passwd'); $form->input('User.confirm_new_passwd');
How do I validate them with the rules:
- old password must match User.password
- new_passwd and confirmnew_passwd must be equal
Are there better solutions for this? I'm open for suggestions. Thanks!