It's not. If he needs people to get access to the main page without the
login redirect, then that's what has to be done.
On Friday, December 13, 2013 6:51:56 AM UTC-7, Leonel Câmara wrote:
That's a horrible idea Derek.
You could however have the controller check auth.is_logged_in() instead
What I think is a horrible idea is to deal with it in the template.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you
It's not a good idea unless the app runs on an intranet behind a
well-secured firewall and you don't care about who created a record or
updated a record.
As Leonel pointed out, he could use auth.is_logged_in().
He could also write his own decorator, though that seems overkill for a
one-page
That's a horrible idea Derek.
You could however have the controller check auth.is_logged_in() instead of
using the decorator.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
-
Remove this line:
@auth.requires_login()
handle it in the template.
On Thursday, December 12, 2013 8:17:42 AM UTC-7, software.ted wrote:
I am trying to develop a one page ajax application using web2py. But the
problem i have is to manage the default redirection of annotated actions in
5 matches
Mail list logo