I'm using this snippet which works fine. In order to get this working, I generate a random string as the username on creation and created a unique index on the email address field.
I guess it goes a little against the grain given you're patching the db however I feel email address fields should be unique to ensure you don't have multiple users registered with the same address. HTH On Sep 10, 3:15 pm, novice <[EMAIL PROTECTED]> wrote: > Hello, > > I am using the django auth and liking it, but I would like to make the > username to be an email field. I can do it easily by changing the user > model in the auth, but is there any way of accomplishing this without > changing the user model? I came across this > snippetwww.djangosnippets.org/snippets/74/ > which is somehow related to what I need but this one is telling how to > use the username or the email to login, users still have to register > with a user name that is not an email. > > Thanks in advance! > Oumer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---