See http://web2py.com/books/default/chapter/29/9#Manual-Authentication.
if request.vars:
auth.login_bare(request.vars.ID, request.vars.pass)
But it's dangerous to put the login credentials in the URL.
Anthony
On Tuesday, June 26, 2012 12:42:25 AM UTC-4, aungsan wrote:
>
> I got following issue with web2py Authentication.
>
> I have to authenticate through URL "
> http://www.example.com/something/q?ID='username'&pass='password'"
>
> It return true or false. I cannot go and change it. And I have to do
> authentication with it for sure.
>
> After I got true or false, I would like to insert username and password
> into web2py auth database and set login flag. So that user is logged in.
>
> How could I implement it ?
>
>
--