[Dancer-users] Question about Dancer::Plugin::ValidateTiny

Forgoselo Fontardion fontardion at gmail.com
Wed Jun 6 16:25:04 CEST 2012


Hello,

That solved it.

Thank you,

               Fontardion

2012/6/6 Sergiy Borodych <sergiy.borodych at gmail.com>

> Hello,
>
> 2012/6/6 Forgoselo Fontardion <fontardion at gmail.com>:
> > Dear dancers,
> >
> > I'm building a web application and need to use some forms. I'm using
> > Dancer::Plugin::ValidateTiny to validate de parameters that the web
> browser
> > send in every request. It's very easy to use, but I have found a
> limitation
> > and doesn't know how to overcome it.
> >
> > The form i'm working now is for creating a new user, so it has four
> fields:
> > "username", "password1", "password2", "email". I'm doing the usual
> checking,
> > but i can't find the way to implement the folloging rule: "username" and
> > "password1" can't be equal. Is there a way to do this?
> >
>
> See documentation
>
> https://metacpan.org/module/Validate::Tiny#checks
>
> especially this part
>
> Example:
> # Make sure the password is good
> sub is_good_password {
>
> --
> Sergiy Borodych
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20120606/794bbf0b/attachment.htm>


More information about the Dancer-users mailing list