followup problem is for some reason I cannot update the password in the DB.
I am doing db(query).update(password = newpass), however, it does not change the password for some reason... On Jan 11, 3:11 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > 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 <r...@devshell.org> 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 web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.