I've added these lines, and now the fields are hidden both on the signup 
page and on the profile page.

How can I make the fields hidden only on the signup page? 

I want the user to be able to add their name later on the profile page.

On Monday, January 30, 2012 at 8:14:09 AM UTC+7, Massimo Di Pierro wrote:
>
> I suggest you simply make the fields hidden 
>
> db.auth_user.first_name.readable = db.auth_user.first_name.writable = 
> False 
> db.auth_user.last_name.readable = db.auth_user.last_name.writable = 
> False 
>
> On Jan 29, 6:36 pm, HittingSmoke <hittingsm...@gmail.com> wrote: 
> > I'd like to use auth with only a username instead of first and last 
> > name. I defined my own tables without a first and last name but it 
> > still causes issues throughout the app. 
> > 
> > For instance, when I try to use appadmin to add a user to a new auth 
> > group I get an error (<type 'exceptions.KeyError'> 'first_name') if 
> > there is no first and last name fields in the database. If I create 
> > them but make them unreadable and unwritable the page will load but 
> > all of the entries in the User ID dropdown say "None None (user ID 
> > #)". 
> > 
> > The auth Welcome bar is also fixed to the first name field and if not 
> > used it will says Welcome, None. 
> > 
> > This seems like quite a huge oversight for such a robust auth system. 
> > Usernames are far more common for user management than first and last 
> > names and many people just plain refuse to give their real names to 
> > random web sites that require authentication. 
> > 
> > Is there a modded version of auth perhaps that can be used as a 
> > plugin? Excuse me if that sounds stupid, I'm just started out with 
> > this and could very well just be going about this all wrong.

-- 
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 web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to