The example on the bottom of page 212 in the new book shows you how to
do it.

On Aug 27, 6:40 pm, ed <[email protected]> wrote:
> Hi,
> It tried modifying the default.py auth.register() form with the
> following code:
> def user():
>     if request.args(0)=='register':
>         response.flash=T('Register')
>         form = SQLFORM(db.auth_user, fields='first_name',
>                    'last_name','password','email',
> 'birthdate'])
>         return dict(form=form)
> Only Password is displayed. How to specify Password2 so that it will
> be displayed and comparison of the two passwords can be done
> automatically in register.
> By the way, you might wonder why I used form=SQLFORM(). After a lot of
> modifying auth_user and default.py and running register, the Password
> field failed to display.
> Thanks in advance for your help.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to