The fields 'email', 'first_name', 'last_name', 'password' and 'registration_key' are required. 'username' is optional. You can change any of their attributes validators (but do not make the registration_key shorter). You can add other fields.
On Jun 24, 4:02 pm, DenesL <[email protected]> wrote: > While moving away from my customized authorization handling (not > related to tools.Auth) I feel the need to use custom auth tables as > explained in the latest slides (slide 125). > > The outlined procedure for creating a custom auth_user table calls for > some required base fields. > What manipulation is allowed on these base fields?. > Can I change their length? add requires to them?. > Or are they untouchable? > > Even if they can not be modified I feel that these fields and their > requires should be provided in one of the settings so that you could > pass them as part of the define_table call, making the process less > error prone. > > So somewhere in Auth.__init__ there would be a: > self.settings.table_user.basefields= [db.Field > ('first_name',...), ...] > > or similar, and then you could do > fields=auth.settings.table_user.basefields.extend([my_fields_here]) > auth.settings.table_user = db.define_table(fields) > > Denes. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

