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
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
2 matches
Mail list logo