[web2py] Re: redirected to @auth.requires_login() page

2011-10-24 Thread Anthony
> > Actually, my example was wrong. It should be the following. When you > click the login link at index, it will redirect you menu1. > Not sure I follow. When you click the 'login' link from the home page, instead of going to /menu/default/user/login (I assume your app name is 'menu'), it goe

[web2py] Re: redirected to @auth.requires_login() page

2011-10-24 Thread Omi Chiba
Anthony, >do you click a login link and then go to a login page (e.g., > /app/default/user/login)? Yes. It's just simply clicking the link. > Is auth.settings.login_next set to URL('default', 'menu1')? No. nothing is specified. When I check the value it shows "/menu/ default/index". Actually,

[web2py] Re: redirected to @auth.requires_login() page

2011-10-24 Thread Anthony
On Monday, October 24, 2011 2:01:52 PM UTC-4, Omi Chiba wrote: > > For example, I have two menus (Home and Menu1) and Menu1 requires > login. Now, I login when I'm at Home, it redirect me to Menu1. > What do you mean "log in when I'm at Home"? Is there a login form on the home page, or do you cl