not sure.
Try
@auth.requires_login()
def register_other():
return dict(form=auth.register(next=URL(r=request,f='index')))
and see it does what you want or not.
On Jul 3, 10:55 am, DenesL <[email protected]> wrote:
> In my app I have an @auth.requires_login() before most of the actions
> but this only shows me a form asking for username and password (since
> I have field username in auth_user table), but I would like to be able
> to register a new user too instead.
>
> It seems that I need to set auth.settings.login_form to a function
> which creates the custom form. This custom form would have to bundle
> two forms: one for login, one for registration.
> Am I on the right track here?.
>
> Thanks,
> Denes.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---