Hello forum! I am trying to replace the default auth table 'auth_user' with my own: auth.settings.table_user = db.define_table( auth.settings.table_user_name, Field('username', length=32, requires = [IS_NOT_EMPTY(), IS_LENGTH (32), IS_ALPHANUMERIC()]), Field('email', length=128,default='', requires = [IS_EMAIL(), IS_NOT_EMPTY()]), Field('password', 'password', readable=False, label='Password', requires=CRYPT(digest_alg='sha512')), Field('registration_key', length=128, writable=False, readable=False, default='')) auth.define_tables()
The table gets created, but when I try to register a user it seems like web2py is trying to access columns from the default table (which aren't there): File "/home/.../web2py/applications/feed/controllers/read.py", line 44, in index return dict(next=next, prev=prev, entries=entries, feeds=feeds, login_form=auth()) File "/home/.../web2py/gluon/tools.py", line 466, in __call__ return self.register() File "/home/.../web2py/gluon/tools.py", line 880, in register % form.vars KeyError: 'first_name' Dropped tables, created fresh ones, restarted web2py. Framework is latest version. Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---