db.table.field.requires=[IS_LENGTH(20),CRYPT(key)] In this case IS_LENGTH checks the length of the password before it is crypted (validators are filters and they are executed in order).
You may also want to look into IS_STRONG as an alternative to IS_LENGTH On Jan 11, 5:01 pm, waTR <[email protected]> wrote: > I have a form made with form factory and SQLForm that has 2 password > fields set to CRYPT(). > > When the form is submitted I need to check the length of the password > entered (the string). However, the password is hashed, and so I am not > sure how to check the length of the actual password string.
-- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.

