Please assist me in validating the same character for both the new and confirm password fields...
In the current version, the validationFunction
only accepts a single argument, but I would like to send both values and show I can compare them...
CustomValidator::create("confirmPasswordMatch")
->inputToValidate("newPassword")
->inputToValidate("confirmPassword")
->validationFunction(function ($value, $value2) {
return ($value == $value2)?true:false;
})
->validationGroup("vGroup")
->errorMessage("Password and Confirm Password does not match!"),
I really appreciate any help you can provide.