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