On Thu, Jul 2, 2009 at 12:45, Jason Brower<[email protected]> wrote:
> Isn't there a way to redirect to a page after a successful login?
> Regards,
> Jason

>From Auth class we have:

    def login(
        self,
        next=DEFAULT,
        onvalidation=DEFAULT,
        onaccept=DEFAULT,
        log=DEFAULT,
        ):

...
                redirect(next)
...

So you must pass "next" attribute (it is a URL). You can use
next=URL(r=request, a='myapp', c='mycontroller', f='myfunction').

-- 
 Álvaro Justen
 Peta5 - Telecomunicações e Software Livre
 21 3021-6001 / 9898-0141
 http://www.peta5.com.br/

--~--~---------~--~----~------------~-------~--~----~
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