With the latest trunk this will work.

On Feb 13, 9:01 am, blackthorne <francisco....@gmail.com> wrote:
> Never mind my first question...
> I see I can do:
> return dict(form = auth.register(next="login"),form2 = auth.login
> (next="index"))
>
> On Feb 13, 2:47 pm, blackthorne <francisco....@gmail.com> wrote:
>
> > Yes thank you but notice 2 different questions:
> > - How can you have both login and register forms in the same page?
> > request.args[0] can never be both...
>
> > - If I want to add more fields to the user registration more specific
> > to the application I want to create... how can I avoid having to
> > create 2 forms (one for Auth and other for user attributes that I
> > consider relevant to my application)?
>
> > Thank you
>
> > On Feb 13, 8:05 am, Fran <francisb...@googlemail.com> wrote:
>
> > > On Feb 13, 3:34 am, blackthorne <francisco....@gmail.com> wrote:
>
> > > > How can I generate, in a single page, both login and register forms
> > > > since Auth() seems to generate them according the URL passed?
>
> > > All you need in the view is:
> > > {{=form}}
>
> > > I prefix mine with this to make it more user-friendly, which you can
> > > adapt as you like:
> > > <h2>
> > > {{if request.args[0]=='login':}}
> > > Login
> > > {{elif request.args[0]=='register':}}
> > > Register
> > > {{elif request.args[0]=='profile':}}
> > > Profile
> > > {{pass}}
> > > </h2>
>
> > > F
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@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