sorry, that is a left over variable. You should use

auth.settings.login_next

instead

On Mar 2, 4:20 am, Nico de Groot <[email protected]> wrote:
> Hello,
>
> I tried to use the settings to redirect after a succesfull login by
> changing
>
>    settings.after_login_url
>
> But in the current code this is not acted upon. I've made a small and
> quick patch (see below) to get it working. But maybe I missed
> something and there is a better way?
>
> Nico de Groot
>
> #file tools.py,
> Class Auth(object):
> ...
>  def  login()
> ...
>             if log:
>                 self.log_event(log % self.user)
>             if onaccept:
>                 onaccept(form)
>             # patch NCdG
>             if self.settings.after_login_url:
>                 redirect(self.settings.after_login_url)
>             # /patch NCdG
>             if not next:
>                 next = URL(r=request)
>             elif next and not next[0] == '/' and next[:4] != 'http':
>                 next = URL(r=request, f=next.replace('[id]',
>                            str(form.vars.id)))
>             redirect(next)
>         return form
> # /end of login
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to