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.