On Saturday, April 9, 2016 at 5:40:51 PM UTC-7, Jerry Liu wrote:
>
> Hello, everyone
>
> I want to customize my user registration page a little bit, and I am using
> the code like below:
>
> {{=form.custom.begin}}
>
>
> <div>{{=form.custom.widget.username}}</div>
>
> ...
>
>
> {{=form.custom.submit}}
> {{=form.custom.end}}
>
>
> I couldn't figure out what fieldname I should put for the "confirm
> password"
>
> Any help?
>
It appears that the confirm field is "password2", going by
confirm_registration() in gluon/tools.py. It looks like that is checked
either in the widget or in form.accepts(), and is not passed to the auth
table update.
/dps
--
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.