On Sep 5, 12:10 pm, eddwinston <[email protected]> wrote: > I have in my default controller the "user" action that exposes the > auth object. But I wanted authenticated also in a different > controller, say, second_controller. I decorated one of my action in > the "second_controller" with @auth.requires_login() and it was looking > for a "user" action in "second_controller". Do I still need to have an > action that will expose the auth object again in "second_controller"?
Add this to your model auth.settings.on_failed_authorization = URL(r=request, c='default', f='user', args='not_authorized') F --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

