Massimo,

This works:

auth.settings.login_next=URL(r=request, c='crudtool', f='index') in
db.py and when I login I am redirected to 
http://127.0.0.1:8000/mock/crudtool/index

But this doesn't work:

auth.settings.logout_next=URL(r=request, c='authtool', f='login') in
db.py, when I logout I get an invalid function error which is correct,
the address in the browser reads: http://127.0.0.1:8000/mock/authtool/user/login

How do I get rid of this user bit in the URLs


The problem I described in my previous post isn't solved either:

Furthermore I created a controller crudtool in which I will define
crud actions. When I expose the index function in crudtool:

@auth.requires_login()
def index():
    return dict(message="hello from crudtool.py")


it redirects to: http://127.0.0.1:8000/mock/crudtool/user/login, but
there is no function user and args login. Whereas it should redirect
me to http://127.0.0.1:8000/mock/authtool/login I thought I would
solve this using the next attribute...


Kind regards,
Annet
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to