I did some reading with testing
47th page should be:
auth_table = db.define_table(
auth.settings.table_user_name,
Field('first_name', length=128, default=''),
Field('last_name', length=128, default=''),
Field('email', length=128, default=''),
Field('password', 'password',readable=False, label='Password'),
Field('registration_key', length=128, default= '',writable=False,
readable=False))
auth.settings.table_user = auth_table
auth_table.first_name.requires =
IS_NOT_EMPTY(error_message=auth.messages.is_empty)
auth_table.last_name.requires =
IS_NOT_EMPTY(error_message=auth.messages.is_empty)
auth_table.password.requires = [IS_STRONG(), CRYPT()]
auth_table.email.requires =
[IS_EMAIL(error_message=auth.messages.invalid_email),IS_NOT_IN_DB(db,
'%s.email'% auth.settings.table_user._tablename)]
errors:
auth_table.passfield instead of auth_table.password
also more important:
auth_table = auth.settings.table_user
instead of auth.settings.table_user = auth_table
--
Kuba
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---