How can i do it without the validate function or what do the validate
function do exactly ? am working with an API so am using another language ,
so i need to do what the validate dose .
regards,
On Thu, Jan 31, 2013 at 11:16 AM, Vasile Ermicioi elff...@gmail.com wrote:
lets say you want to control manually if some string is the password of
the user
email='some@email'
pwd='12312312'
hashed_pwd = db.auth_user.password.validate(pwd)[0] # I suppose this is
what you want
if
db(((db.auth_user.password==hashed_pwd)(db.auth_user.email==email)).count():
#do something
--
---
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.
--
---
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.