I figured out how to combine login and registration forms by using the
controller:
def index():
return dict(form=auth.login(),form1=auth.register())
and then in my view
{{=form}}
{{=form1}}
I figure the answer to part 1 of my question question, combining the
lost password and username forms into one, will involve the same
concept. However, still not sure offhand how to modify the
auth.navbar options. Any help would be appreciated. I suspect this
will end up involving a change to the web2py code, or else just
creating a custom HTML navbar.
On Sep 3, 6:22 pm, Eric <[email protected]> wrote:
> I'm hoping to combine the auth registration and login forms on one
> page. Can anyone please point me in the right direction? I could do
> this manually in the view, but I am guessing there's a simpler way to
> do it with web2py.
>
> Reading the manual, I see that I can set the login URL accordingly:
>
> auth.settings.login_url = URL('user', args='login')
>
> But it's not clear to me how I might use this combine the login form
> and the registration form on the same page.
>
> I'd also like the combine the "lost password" and "forgot username"
> options to one "help" page, and change the auth.navbar to only display
> a single link to this help page instead of two links to "lost
> password" and "forgot username".
>
> I'd be grateful for any assistance.
>
> Thank you,
>
> Eric