I have a registration form with two fields
mobile2. The second field is only to confirm that the user has not made any typo.
My form file:
//begining of the file use Phalcon\Validation\Validator\Confirmation as ConfirmationValidator; //leter somewhare in an initialisation() method: $mobile2->addValidator(new ConfirmationValidator(array( 'message' => "Numbers does not match", 'with' => 'mobile' )));
Everything works fine except one situation.
The validator does NOT see an error when the values differ in
+ sign at the beginnig, e.g.:
mobile has +420777888999 value
mobile2 has 420777888999 value
Does anyone have similar problem to me? Is it a bug or this is how it should work?