Hi Anthony,
Thanks for your advice. In the end I wrote a function to verify that the
emails were the same and attached it to the onvalidation callback as
follows:
auth.settings.register_onvalidation = verify_email
This verify email function then manually adds an error flag to the form:
form.e
Maybe look at how Auth.register does it for the password
field: http://code.google.com/p/web2py/source/browse/gluon/tools.py#1905.
In your user function, you might do something like:
def user():
if request.args(0) == 'register':
form = auth.register(onvalidation=verify_email)
2 matches
Mail list logo