yes. You still need

from gluon.tools import Auth
auth=Auth(globals(),db)
auth.define_tables()

then you can check with

      user = auth.login_bare(username, password)

user is None if invalid login.



On Jun 29, 2009, at 11:30 AM, Hasanat Kazmi wrote:

> Hi,
>
> I want to programatically authenticate a user. I have username and
> password of a user and I want to authenticate it without created a
> form.
> Something like this:
>
> token = Auth().check(username, password)
> if token:
>   ......
>
> Is it possible?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to