'auth.settings.register_verify_password = True' does not generate password confirmation field

38 views
Skip to first unread message

Spokes

unread,
Apr 16, 2014, 8:28:08 AM4/16/14
to web...@googlegroups.com
I am writing a custom registration form, and would like the form to contain a field in which the user has to re-enter/confirm the password they want. The new user() function contains the following lines:

def user():
   
if request.args(0) == 'login':
       
return dict(form = auth())
   
else:        
        form_user
= SQLFORM(db.auth_user)
       
       
if form_user.process().accepted:
           
pass
       
       
return dict(form=form_user)

The registration form that's generated does not contain a field to confirm the password.

I've set 'auth.settings.register_verify_password' to True in my db.py file (generated by the wizard), but it does not seem to have any effect. How can I make the password confirmation field appear as part of the form? Thank you.

Leonel Câmara

unread,
Apr 17, 2014, 5:31:12 AM4/17/14
to web...@googlegroups.com
I would just use the form from auth.register() which already has it and use form.custom to make my custom form in the view.
Reply all
Reply to author
Forward
0 new messages