Try this: db.define_table( "siteuser", db.Field('user_id'), db.Field('user_id__tmp'), db.Field('firstname', length=128, default=''), db.Field('lastname', length=128, default=''), db.Field('email', length=128, default='', requires = [IS_EMAIL(), IS_NOT_IN_DB(db,'siteuser.email')]), db.Field('password', 'password', readable=False, label='Password', requires=CRYPT()), db.Field('registration_key', length=128, writable=False, readable=False,default=''), db.Field('last_logged_in', type='datetime', default='now'), db.Field('last_logged_in_from', length=36, default=''), db.Field('created_on', type='datetime', default='now'), db.Field('active', type='boolean', default=True) )
auth=Auth(globals(),db) # authentication/authorization auth.settings.table_user_name = 'siteuser' auth.settings.table_user=db.siteuser ### this was missing auth.define_tables() # creates all needed tables --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---