Field('practice', db.practice, label=T('Practice')),
Field('Reg_number',requires=IS_NOT_EMPTY(error_message='cannot be empty!'), label=T('Registration Number')),]
## create all tables needed by auth if not custom tables
auth.define_tables(username=False, signature=False)
## configure auth policy
auth.settings.registration_requires_verification = False
auth.settings.registration_requires_approval = False
auth.settings.reset_password_requires_verification = True
auth.settings.actions_disabled=['register']
Op woensdag 1 juni 2016 16:06:10 UTC+2 schreef Niphlod: