[web2py] Re: Add verify email field to auth register form

2012-03-02 Thread greenguerilla
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

[web2py] Re: Add verify email field to auth register form

2012-03-01 Thread Anthony
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)