Hello, I don't know If I doing something wrong but I thought that after login using @auth.requires_login() I should be redirected to the index function.
With this code, after login I remain on the loging screen: "http:// 127.0.0.1:8000/test/default/user/login" def index(): """ example action using the internationalization operator T and flash rendered by views/default/index.html or views/generic.html """ return dict(mensaje="Hello") def user(): """ exposes: http://..../[app]/default/user/login http://..../[app]/default/user/logout http://..../[app]/default/user/register http://..../[app]/default/user/profile http://..../[app]/default/user/retrieve_password http://..../[app]/default/user/change_password use @auth.requires_login() @auth.requires_membership('group name') @auth.requires_permission('read','table name',record_id) to decorate functions that need access control """ return dict(form=auth()) @auth.requires_login() def test(): return dict() Thanks a lot! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---