[html-formfu] Constraint for salted hash password

Carl Franks fireartist at gmail.com
Fri Feb 27 19:36:54 GMT 2009


2009/2/27 Christian Lackas <christian at lackas.net>:
> So, MinLength does not apply to the empty string? Why is that?
> I would have expected that FormFu complains here also.

The Required constraint is the only one that demands the value is entered.
MinLength really means "if it's filled-in, then it must be at least X
chars long".

Otherwise, there would be no way to add a constraint to an optional field.

> The user might have updated other fields (such as his mail address, not
> shown in my example here, though).
> I found that simply re-adding the value from the database (s.a.) is the
> quickest solution.

Ok. I'll still add the 'ignore_if_not_true' idea to the Model-DBIC to-do list,
as I think it's a good idea.

Cheers,
Carl



More information about the HTML-FormFu mailing list