I have one application that takes car of all the auth stuff.
In the init application I have a couple of functions that require login,.
I added this line of code session.connect(request, response,
masterapp="controlpanel") and
decorated the functions with @auth.requires_login() and set
auth.settings.login_url = URL('controlpanel', 'default', 'user',
args='login')
I removed def user(): from the init application.
Is there a setting to not just set the login_url but to set all urls,
something like:
auth.settings.user_url = URL('controlpanel', 'default', 'user')
Kind regards,
Annet.
--
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/d/optout.