Friday, October 28, 2011

Re: Long usernames in auth_user?



On Wed, Oct 26, 2011 at 3:00 PM, Kurtis Mullins <kurtis.mullins@gmail.com> 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 less than finding people w/ 30 chars -- but still a limitation none-the-less as there is no limitation on how long an email address can be.


Not quite correct -- from RFC-3696:
    In addition to restrictions on syntax, there is a length limit on    email addresses.  That limit is a maximum of 64 characters (octets)    in the "local part" (before the "@") and a maximum of 255 characters    (octets) in the domain part (after the "@") for a total length of 320    characters.  Systems that handle email should be prepared to process    addresses which are that long, even though they are rarely    encountered.
320 characters suffices for any valid email address.


--
Regards,
Ian Clelland
<clelland@gmail.com>

--
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 django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment