Here is the problems: auth_table=db.define_table(auth.settings.table_user_name,...) ... auth_table.username.requires= IS_NOT_IN_DB(db, 'auth_table.username')
The name of the table is auth.settings.table_user_name=='auth_user'. auth_table is a local variable that reference tha table itself. In validator you use 'auth_table.username' instead of 'auth_user.username'. You fix the problem with: auth_table.username.requires= IS_NOT_IN_DB(db, 'auth_user.username') --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" 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 -~----------~----~----~----~------~----~------~--~---

