Ah yes, thanks again. I tinkered with the django-registration and was a bit more than I need.
While the username can store an email address, it's 30 character limit prevents me from relying on that. Looking over an existing database I have, there are quite a few email addresses over that character limit. I suppose I could check if an email exists before saving a user creation form, but I don't like not having that constraint in the DB. Can I alter the DB field at creation with a fixture or something? I guess then I wouldn't have that nice DB abstraction. I have created the custom auth backend to allow users to sign in with an email address. It works great. I then subclassed the UserCreationForm to add an email address field which also works. In this case, the web users will not need access to the admin so I'm not too concerned about what username shows up there--I could even auto-generate one. So now what I need to do is: 1. Remove the "username" field from my subclassed version of UserCreationForm. Not sure how to do that. I will then create the username in the save() method. 2. Rename the "username" field in the login form to "Email Address". I am using the built-in login view, so I probably will have to write my own view? On Wed, Jan 12, 2011 at 7:50 AM, Shawn Milochik <sh...@milochik.com> wrote: > If you're using 1.3, you can make the e-mail address the username, which > will automatically require it to be unique. > > I haven't used django-registration, but many others have, so maybe they'll > be able to answer. On face-value, I'd say that your question is a bit off, > though; django-registration doesn't replace the contrib.auth system. It just > provides a way for you to create a user-friendly registration system for > your users, but it still uses contrib.auth on the backend. > > Shawn > > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@googlegroups.com. > To unsubscribe from this group, send email to > django-users+unsubscr...@googlegroups.com<django-users%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > -- Micah Carrick, Founder *Green Tackle* - *Environmentally Friendly Fishing Tackle* www.GreenTackle.com <http://www.greentackle.com> Email: mi...@greentackle.com Phone: 971.270.2206 Toll Free: 877.580.9165 Fax: 503.946.3106 -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.