I think there is a problem with stable version in case there is a redirect, a login failure and a second redirect. I think I have fixed it in trunk. Since it required a lot of change it needs to be tested.
Can you please give it a try and let us know? Massimo On Jan 3, 1:53 am, kbochert <[email protected]> wrote: > Ok, that works. Now I correctly get to my logon page at > > /myapp/admin/user/login?_next=/myapp/admin/home > > instead of "default\index". But if that logon fails, I get redirected > to > > /myapp/admin/user/login > > which shows the logon form but fails (goes to "default\index") if I > use a valid logon. > Somehow the vars have vanished. > > The code in gluon/tools.py > > if not user: > # invalid login > session.flash = self.messages.invalid_login > redirect(self.url(args=request.args)) > > looks suspicious (no vars) , but I am seldom right about these things. > > Karl > > On Jan 1, 9:25 am, mdipierro <[email protected]> wrote: > > > auth.settings.controller='myctl' > > > On Jan 1, 8:01 am, kbochert <[email protected]> wrote: > > > > I'm trying to use my custom login page. > > > > In models\db.py I put > > > > auth.settings.login_url = "/myapp/myctl/user/login" > > > > When I go to a protected page, I get the expected login page 'myapp > > > \myctl\user\login' . > > > If I enter a user email and a bad password, I get sent to the page > > > 'myapp\default\user\login' . > > > > How can I return to my login page? > > > > Karl > > -- You received this message because you are subscribed to the Google Groups "web2py-users" 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.

