Re: Email as username in django auth framework

2007-09-11 Thread Jarek Zgoda
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)

Email as username in django auth framework

2007-09-10 Thread novice
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

Re: Email as username in django auth framework

2007-09-10 Thread cesco
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

Re: Email as username in django auth framework

2007-09-10 Thread MikeHowarth
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

Re: Email as username in django auth framework

2007-09-10 Thread Jarek Zgoda
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,