The first _next in request.get_vars is captured and it goes into a
hidden form field therefore it is ok that it does not show in url.
Anyway, I will test it more.

On Jan 4, 4:14 pm, kbochert <kboch...@copper.net> wrote:
> Tried the mercurial download - It runs but for some reason does not
> accept correct logins.
>
> I just copied my application into the new  web2py's application
> folder, and copied my routes.py as well.
>
> Surfing to the protected page, I get the logon screen with a url that
> includes the "?_next=..." var.
> Entering a bad password returns to the logon screen but this time the
> "?_next=..." is missing from the url, so I'd guess that it would fail
> if it ever accepted the correct password.
>
> Karl
>
> On Jan 4, 6:00 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > If you downoloaded it, just run it.
>
> > python web2py.py
>
> > On Jan 4, 5:07 am, kbochert <kboch...@copper.net> wrote:
>
> > > I'm assuming that by 'trunk' you mean the top mercurial version.
> > > I downloaded it (via TortoiseHg' . Now what?
> > > My file explorer (PowerDesk) blinks every 2 sec when it shows any part
> > > of the repository. I tried the obvious - "python setup_app.py" but it
> > > hung.
> > > Any hints for an amateur?
> > > Karl
>
> > > On Jan 3, 12:20 pm, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > > > 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 <kboch...@copper.net> 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 <mdipie...@cs.depaul.edu> wrote:
>
> > > > > > auth.settings.controller='myctl'
>
> > > > > > On Jan 1, 8:01 am, kbochert <kboch...@copper.net> 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 web...@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