I just ran into an issue where a user was copy/pasting username and password from a text file into the login screen. For some reason the c/p process was adding a trailing space to their credentials and they were failing login.
Is there a reason to not scrub leading and trailing spaces from logon credentials in django.contrib.auth.forms.AuthenticationForm.clean? I guess that leading and trailing spaces would also have to be scrubbed when creating users as well Chaim Kirby -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To post to this group, send email to django-developers@googlegroups.com. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.