put the logic on top of controller file:

if not auth.is_logged_in():
    redirect( ... )


On Wed, Jul 24, 2013 at 1:38 PM, David Marko <[email protected]> wrote:

> How can I protect the entire controller to be available only for logged in
> users? Something like @auth.requires_login() but for the entire controller
> instead of each method ?
>
> --
>
> ---
> 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.
>
>
>

-- 

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