Hi,

On my site users must login with their email address. I'm successfully
using a custom authentication backend based on [1].

The problem is with email addresses longer than 30 characters. At the
moment, these addresses can't log in because the
django.contrib.auth.forms.AuthenticationForm's username field has a
maxlength of 30 and therefore validation always fails before even
hitting the auth backend.

To go around that, I can see 2 options:
- patch Django and put 75 as the AuthenticationForm username field's
max_length.
- create my own login view (duplicating the standard auth login view
and replacing all the references to AuthenticationForm with my own
custom form).

None of these 2 options seem to satisfy me completely... What do you
think is the best practice here?

Thanks a lot,

Julien

PS: I'm using a fresh checkout of newforms-admin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to