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 app.

On Thursday, December 19, 2013 12:35:31 PM UTC-5, Derek wrote:
>
> 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 
>> of using the decorator. 
>>
>

-- 
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 are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to