I now see the problem: encpasswd=db.auth_user.password.validate(mypassword)[0] logger.debug("encrypted passwd - %s" % encpasswd)
should be encpasswd=db.auth_user.password.validate(mypassword)[0] logger.debug("encrypted passwd - %s" % str(encpasswd)) because the encrypted password is not a string but an object. It turns into a string only when serialized. On Tuesday, 7 May 2013 04:06:49 UTC-5, vikas gupta wrote: > > something weird here, my messages arent getting reflected... trying again. > > this is what i get from the print statement: > > <gluon.validators.LazyCrypt object at 0xac526eec> > > the bulk insert was successful (after deleting some fields from the > statements as those arent there in the table)... i can see the records in > the db. password is encrypted. > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.