[web2py] Re: still need some help with how to redirect after register

2010-09-27 Thread mdipierro
perhaps auth.settings.register_next = session.next or auth.settings.register_next On Sep 27, 6:05 pm, "david.waldrop" wrote: > I got this to work, but think there should be an easier way. > > I added the following snippet to the default user controller: > >     # if user clicked a link and regis

[web2py] Re: still need some help with how to redirect after register

2010-09-27 Thread david.waldrop
I got this to work, but think there should be an easier way. I added the following snippet to the default user controller: # if user clicked a link and registers, take them to the meeting after the registration component logs them in if request.args[0] == 'register' and len(session.next)

[web2py] Re: still need some help with how to redirect after register

2010-09-27 Thread david.waldrop
massimo, i need to be able to redirect the user after registration, not login. But only when the user has clicked on an invitation link - i.e. not always. It seems to me the auth.settings.register_next is not working (or i do not understand how it works). I see in the default user controller t

[web2py] Re: still need some help with how to redirect after register

2010-09-26 Thread mdipierro
store the url is session.next and after login if session.next redirect there and clear the variable. On Sep 26, 4:48 am, "david.waldrop" wrote: > I have an application that enables users to invite others by > capturing > their email address and sending an email invite.  The invite includes > a li