Ok, Thank you for clarification! Richard
On Wed, Jul 24, 2013 at 11:55 AM, Anthony <[email protected]> wrote: > On Wednesday, July 24, 2013 10:34:22 AM UTC-4, Richard wrote: > >> Anthony, what the advantage of that over @auth.requires_login() ?? >> > > @auth.requires_login() has to be applied separately to each function you > want to protect. David asked about protecting an entire controller. To > avoid having to repeat the same decorator on every function in the > controller (possibly forgetting when you add a new function), you can > instead protect the entire controller with a single line at the top. > > You can also do it in a model file to protect the entire application, but > in that case you should add some logic to exclude /default/user from the > check -- otherwise, users won't be able to get to the login page. > > Anthony > > -- > > --- > 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.

