Security is clearly not at the top of your agenda :)
Something like this might work:
def logmein():
# minimal, insecure login function
auth.login_bare(request.vars['username'],request.vars['password'])
yoursite.com/yourapp/default/logmein?username=abc&password=xyz
On Wednesday, September 12, 2012 12:40:13 PM UTC+1, Remco K wrote:
>
> Hello everyone,
>
> I'm not a big fan of asking questions rather than find solutions by myself
> but i need a little help on this one so i hope someone can help me a bit.
>
> What i need is 'very simple'. I have a Web2Py application running and i
> need other applications (PHP or something) to be able to successfully login
> users to this app by providing the username and password via the URL.
>
> When doing this in PHP i would think of something like:
>
> /index.php?username=blabla&password=dfgfdjkldfgjk
>
> I've already looked at basic auth but i can't get the user to login.
>
> All of my controllers/functions use
> @auth.requires_login()
> to check whether the user has the permission to execute the functions.
>
> I hope someone can help me out on this.
>
> Thanks in advance!
> Remco
>
>
--