what is the error?
On Jul 5, 12:36 pm, weheh <richard_gor...@verizon.net> wrote:
> http://mdp.cti.depaul.edu/examples/default/tools#authentication
>
> has an error in the code snippet on custom user tables.
>
> Here is my correction:
>
> auth.settings.table_user = db.define_table(
> auth.settings.table_user_name,
> db.Field('first_name', length=128,default=''),
> db.Field('last_name', length=128,default=''),
> db.Field('email', length=128,default='',
> requires = [IS_EMAIL(),
>
> IS_NOT_IN_DB(db,'%s.email'%self.settings.table_user_name)]
> ),
> db.Field('password', 'password', readable=False,
> label='Password', requires=CRYPT()),
> db.Field('registration_key', length=128,
> writable=False, readable=False,default=''),
> )
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---