Re: Email as username in django auth framework
cesco napisaĆ(a): >> I'm using this snippet which works fine. > > Which snippet? The one OP mentioned in his post. http://www.djangosnippets.org/snippets/74/ -- Jarek Zgoda Skype: jzgoda | GTalk: [EMAIL PROTECTED] | voice: +48228430101 "We read Knuth so you don't have to." (Tim Peters) --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Email as username in django auth framework
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 snippet www.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 -~--~~~~--~~--~--~---
Re: Email as username in django auth framework
Hi > I'm using this snippet which works fine. Which snippet? Thanks Francesco --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Email as username in django auth framework
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 -~--~~~~--~~--~--~---
Re: Email as username in django auth framework
None I'm aware of. At least, without heavy code lifting. If you can afford maintaining your own fork of django.contrib.auth, then go for it, it's much simpler than the things we did just to have the application behave right with this snippet as AuthBackend. Some problems are not resolved still, like using the output of User.__str__ in many third party apps (django's own admin, for example). On 10 Wrz, 16:15, 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 -~--~~~~--~~--~--~---