[Catalyst] HTML::Widget constraint for optional but equal fields?

Sebastian Riedel sri at oook.de
Mon Jan 30 18:27:23 CET 2006


30.01.2006 15:55 Randall Hansen:
>     $c->widget->constraint( 'Equal', 'password1', 'password2' );
>
> This won't work because by design 'Equal' passes if one of the fields
> is blank.

$c->widget->constraint( 'All',   'password1', 'password2' );
$c->widget->constraint( 'Equal', 'password1', 'password2' );


--
sebastian




More information about the Catalyst mailing list