Is it possible to intercept form submission data before the SQLFORM form factory applies the "requires=" functions, in order to play with the data?
On Jan 11, 4:33 pm, waTR <[email protected]> wrote: > problem solved by looking in manual under DAL. > > did following: > test = db(query).select() > test[0].update_record(password=newpass) > > original problem was to do with pass auth, not db update (db was > updating fine with previous code). > > On Jan 11, 4:07 pm, waTR <[email protected]> wrote: > > > 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 <[email protected]> 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 <[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.

