I currently have both auth.login() and auth.register() forms on the same
page. A simplified version of my code below:
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).
Is this a bug, or is there a proper way to include both login and register
forms on the same page, while having correct server-side validation?
--
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.