This is my db.py file. It is nothing special.
# -*- coding: utf-8 -*- ## if SSL/HTTPS is properly configured and you want all HTTP requests to ## be redirected to HTTPS, uncomment the line below: # request.requires_https() if not request.env.web2py_runtime_gae: ## if NOT running on Google App Engine use SQLite or other DB db = DAL(settings.database_uri, migrate=settings.migrate) else: ## connect to Google BigTable (optional 'google:datastore://namespace') db = DAL('google:datastore') ## store sessions and tickets there session.connect(request, response, db=db) ## or store session in Memcache, Redis, etc. ## from gluon.contrib.memdb import MEMDB ## from google.appengine.api.memcache import Client ## session.connect(request, response, db = MEMDB(Client())) from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db) crud, service, plugins = Crud(db), Service(), PluginManager() auth.settings.extra_fields['auth_user'] = [Field('organization', 'reference organization', label = T('Organizacija'))] ## create all tables needed by auth if not custom tables auth.define_tables(username=False, signature=False) ## configure email mail = auth.settings.mailer mail.settings.server = 'mx.algit.si:25' mail.settings.sender = 'alg...@algit.si' mail.settings.login = 'user.si:pass' mail.settings.tls = False ## configure auth policy auth.settings.registration_requires_verification = True auth.settings.registration_requires_approval = False auth.settings.reset_password_requires_verification = True ## if you need to use OpenID, Facebook, MySpace, Twitter, Linkedin, etc. ## register with janrain.com, write your domain:api_key in private/janrain.key from gluon.contrib.login_methods.rpx_account import use_janrain use_janrain(auth, filename='private/janrain.key') Could it be because of my default.py controler In def user I have if 'register' in request.args: form=SQLFORM.factory(db.auth_user.first_name, db.auth_user.last_name, db.auth_user.email, db.auth_user.password, db.organization.o_name) if form.process().accepted: id = db.organization.insert(**db.organization._filter_fields(form.vars)) db.auth_user.insert(organization = id, **db.auth_user._filter_fields(form.vars)) #, registration_key = 'pending' redirect(URL('index')) return dict(form=form) 2014-11-12 14:43 GMT+01:00 Leonel Câmara <leonelcam...@gmail.com>: > That should work: > > auth.settings.registration_requires_verification = True > auth.settings.registration_requires_approval = False > auth.settings.reset_password_requires_verification = True > > However, you probably want to add this if you don't want them to login at > all until verified > > auth.settings.login_after_registration= False > > As for why the mail sending is not working and no error messages, I would > have to see the mail configuration you're using, you could be using > mail.settings.server = 'logging' as far as I know. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/AxOk3zS8xUE/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Lep pozdrav Vid Ogris -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.