[cgiapp] Data.FormValidator.js

Lyle webmaster at cosmicperl.com
Mon Jan 26 06:40:22 EST 2009


Joshua,
  Have you managed to figure out a work around for:-

 'constraints' => {
            'password1' => {
                'constraint' => "check_passwords",
                'params'     => [ qw( password1 password2 ) ],
              },
          },
  ...
  sub check_passwords {
    my ( $pw1, $pw2 ) = @_;
    if ( $pw1 eq $pw2 ) {
      return 1;
    } else {
      return 0;
    }
  }


I would have thought this is common enough to warrant a work around...

I couldn't see one in your examples.

Am I missing something?


Lyle


More information about the cgiapp mailing list