The details of this problem are explained more thoroughly here:
https://groups.google.com/forum/#!topic/web2py/13gozLyE3Eo
On Thursday, August 28, 2014 1:11:47 PM UTC-7, Mark Li wrote:
>
> There seems to be a problem with this implementation
>
> For example, if you have
> def page():
> login
There seems to be a problem with this implementation
For example, if you have
def page():
login_form = auth.login()
register_form = auth.register()
return dict(login_form=login_form, register_form=register_form)
If you go to the page with both forms, and submit the register form with
return dict(register=auth.register() , login=auth.login())
{{=register}}
{{=login}}
Em 23/01/2013 20:39, "sasogeek" escreveu:
> how do I put the login and register forms on one page... so that a user is
> logged in if they click the login button (if they've entered correct email
> and password)
how do I put the login and register forms on one page... so that a user is
logged in if they click the login button (if they've entered correct email
and password) and are signed up if they click the register button with form
data for a new account?
--
4 matches
Mail list logo