cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[Feature] Form Validator Identical

Open Cmssspl opened this issue 13 years ago • 2 comments

Allow for the construction:

$pass = new Password('pass');
$pass2 = new Password('pass2');

$pass2->addValidator(new Identical(array(
    'accepted' => $pass->value,
    'message' => 'Hasła nie są identyczne'
)));

Cmssspl avatar May 04 '13 15:05 Cmssspl

This validator is implemented in 1.1.0 as Confirmation:

https://github.com/phalcon/vokuro/blob/master/app/forms/SignUpForm.php#L64

ghost avatar May 04 '13 21:05 ghost

1.1.0 is good!

Congratulations ;-)

Cmssspl avatar May 04 '13 22:05 Cmssspl