Re: [web2py] Problem with basic auth

2010-12-15 Thread Martín Mulone
This is my method: def is_user_logged_in(): logged_in=False if 'auth' in globals(): if auth.is_logged_in(): logged_in=True return logged_in 2010/12/15 Adi : > Hi, > I'm trying to set up a function for authenticating users over a service. > This is my method: > def

[web2py] Problem with basic auth

2010-12-15 Thread Adi
Hi, I'm trying to set up a function for authenticating users over a service. This is my method: def authenticate(): is_loggedin = auth and auth.user if not is_loggedin: auth.allow_basic_login = True is_loggedin = auth.basic() return is_loggedin This is how I call it: curl -u a%40b.com