In controller "default", I have defined
def user():
return dict(form=auth())
and the usual /myapp/default/user/login etc works just fine
In another controller"patient" I have functions like
@auth.requires_membership('staff')
def somecontroller()
do something
In the model, I have set
auth.settings.on_failed_authorization=URL(r=request,c='default', f='user/login')
auth.settings.logout_next=URL(r=request, c='default', f='user/login')
auth.settings.login_next=URL(r=request, c='patient', f='index')
When the session times out or I try to access the page unauthorized,
it always redirects me to
/myapp/patient/user/login
instead of
/myapp/default/user/login
So why do I not end up at /myapp/default/user/login but at
/myapp/patient/user/login instead, when not authorized???
Horst
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---