+ 1 for Name only option.

What I do is create an extra field:

auth.settings.extra_fields['auth_user'] = [ Field('u_name') ]

Then define tables without "username" because I want to use email for login:

auth.define_tables(username=False, signature=True)  

Then hide the first and last names by making them unreadable and unwritable:

auth.settings.table_user.first_name.writable = 
auth.settings.table_user.first_name.readable = False
auth.settings.table_user.last_name.writable = 
auth.settings.table_user.last_name.readable = False

The first and last names show up in data base as blank columns, but it is a 
quick work-around. 
Plus later I could but both fields on a "profile" view (by making them 
readable and writeable there)
and let user fill in as optional fields if they like.



On Friday, January 23, 2015 at 6:01:53 PM UTC-7, Leonel Câmara wrote:
>
> I think that should be an auth option. In some cultures it gets really 
> messy what a last name and a first name is. Name only is really the only 
> correct way.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to