[web2py] Re: Verify mail.send in custom form

2010-09-07 Thread mdipierro
yes there is a lof code in here. if you could use the existing auth.register() with auth.settings.register_onvalidation= auth.settings.register_onaccept=... you would avoid reinventing the wheel. This in your code is not a good idea: users = db().select(db.auth_user.id, db.auth_user.us

[web2py] Re: Verify mail.send in custom form

2010-09-07 Thread Francisco Costa
It's a bit big because of all the validations, but here it goes: import re, random, os, shutil def create(): first_name = request.vars.firstname session.first_name = first_name last_name = request.vars.lastname session.last_name = last_name email = request.vars.email ses

[web2py] Re: Verify mail.send in custom form

2010-09-07 Thread mdipierro
please show us your action On Sep 7, 7:07 am, Francisco Costa wrote: > Hello. > I've built a custom registration form. I also use a custom controller > to save the user to the db. > But would like to use email verification after register. > Any thoughts?