Re: Long usernames in auth_user?

2011-10-28 Thread Ian Clelland
On Wed, Oct 26, 2011 at 3:00 PM, Kurtis Mullins wrote: > Check out userena as well. But a custom authentication back-end was the > approach I originally took. And to answer your question, yes -- your chances > of finding people w/ email addresses longer than 75 chars are

Re: Long usernames in auth_user?

2011-10-26 Thread Andre Terra
Then again, you can't assume an email to not have spaces as "John Doe"@example.com is a valid email per the RFC. If you *really* need flexibility, have a UserProfile model with a OneToOne relation to User and your imagination will be the only limit. Cheers, AT On 10/26/11, Kurtis Mullins

Re: Long usernames in auth_user?

2011-10-26 Thread Kurtis Mullins
Check out userena as well. But a custom authentication back-end was the approach I originally took. And to answer your question, yes -- your chances of finding people w/ email addresses longer than 75 chars are less than finding people w/ 30 chars -- but still a limitation none-the-less as there

Re: Long usernames in auth_user?

2011-10-26 Thread Joakim Hove
OK; thanks I was afraid it was not entirely straightforward. On Oct 26, 10:52 pm, Donald Stufft wrote: > This is a known limitation and it's something that people _want_ to get fixed > (but just merely increasing the length isn't helpful, because soon someone > comes

Re: Long usernames in auth_user?

2011-10-26 Thread Andre Terra
On Wed, Oct 26, 2011 at 6:52 PM, Donald Stufft wrote: > The other method is to create your own auth handler (...) > http://djangosnippets.org/snippets/1001/ Cheers, AT -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Long usernames in auth_user?

2011-10-26 Thread Donald Stufft
This is a known limitation and it's something that people _want_ to get fixed (but just merely increasing the length isn't helpful, because soon someone comes along with the new length + 1 and the same problem occurs). The issue is that the django.contrib.auth User model while providing a

Long usernames in auth_user?

2011-10-26 Thread Joakim Hove
Hello, I have been using a (in general quite popular I think ...) convention where the e-mail address has been used as username. I have solved this by asking the user for an e-mail address and a password, and then used the supplied e-mail address both as username and e-mail address when