[web2py] Re: Problem with basic_login actually logging in (maybe not a bug)

2012-06-01 Thread Anthony
OK, I updated the book again. On Friday, June 1, 2012 10:43:42 AM UTC-4, Massimo Di Pierro wrote: > > There is a major problem with the VPS that hosts the book. It is down and > can no longer login into it. I am forced to restore it as May 29. This > change will be lost. Sorry Anthony. > > Massi

[web2py] Re: Problem with basic_login actually logging in (maybe not a bug)

2012-06-01 Thread Massimo Di Pierro
There is a major problem with the VPS that hosts the book. It is down and can no longer login into it. I am forced to restore it as May 29. This change will be lost. Sorry Anthony. Massimo On Thursday, 31 May 2012 23:05:09 UTC-5, Anthony wrote: > > Just updated the book: > http://web2py.com/bo

[web2py] Re: Problem with basic_login actually logging in (maybe not a bug)

2012-05-31 Thread Anthony
Just updated the book: http://web2py.com/books/default/chapter/29/9#Access-Control-and-Basic-Authentication Anthony On Thursday, May 31, 2012 10:54:50 PM UTC-4, Anthony wrote: > > Sorry, forgot login_bare adds the user to auth, so it's simpler: > > auth.settings.allow_basic_login = True > auth.b

[web2py] Re: Problem with basic_login actually logging in (maybe not a bug)

2012-05-31 Thread Anthony
Sorry, forgot login_bare adds the user to auth, so it's simpler: auth.settings.allow_basic_login = True auth.basic() if auth.user: etc. Anthony On Thursday, May 31, 2012 10:49:04 PM UTC-4, Anthony wrote: > > If you can confirm that this works, I'll add it to the book. > > On Thursday, May 31

[web2py] Re: Problem with basic_login actually logging in (maybe not a bug)

2012-05-31 Thread Anthony
If you can confirm that this works, I'll add it to the book. On Thursday, May 31, 2012 10:48:21 PM UTC-4, Anthony wrote: > > Looks like you can do: > > auth.settings.allow_basic_login = True > auth.user = auth.basic()[2] > if auth.user: > etc. > > But this doesn't appear to be documented. Perh

[web2py] Re: Problem with basic_login actually logging in (maybe not a bug)

2012-05-31 Thread Anthony
Looks like you can do: auth.settings.allow_basic_login = True auth.user = auth.basic()[2] if auth.user: etc. But this doesn't appear to be documented. Perhaps auth.basic() should automatically populate auth.user rather than simply returning it as part of a tuple. Anthony On Thursday, May