On Sep 21, 5:13 am, waTR <r...@devshell.org> wrote:
> Is it possible to convert the request.vars.get(passfied, '') to the
> same hash form as you would get from using form() ?

Yes:
myhash = hmac.new(auth.settings.hmac_key, request.vars.get(passfield,
''), hashlib.md5).hexdigest()
if myhash == db(db.auth.settings.table_user.id == myid).select
[0].password:
    # we match
    ...

NB Code not fully-tested, but I hope you get the idea...

F


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@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
-~----------~----~----~----~------~----~------~--~---

Reply via email to