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
errors (such as completely blank), the password field is NOT validated for
the submitted register form!
I have a test example here:
http://tedlee.pythonanywhere.com/welcome/default/formtest
If you define auth.register() first, instead of auth.login(), then this
problem does not appear for register, but there might be problems with
auth.login() (I have not tested this yet).
On Wednesday, January 23, 2013 7:45:34 PM UTC-8, rochacbruno wrote:
>
> return dict(register=auth.register() , login=auth.login())
>
> {{=register}}
>
> {{=login}}
> Em 23/01/2013 20:39, "sasogeek" <[email protected] <javascript:>>
> 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) and are signed up if they click the register button
>> with form data for a new account?
>>
>> --
>>
>>
>>
>>
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.