On Wed, Jul 3, 2013 at 7:25 PM, C. Kirby <[email protected]> wrote: > 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
It's a frequent practice to use special characters including spaces as prefix/suffix for passwords. If you don't like it, you can override AuthenticationForm. -- http://yourlabs.org Customer is king - Le client est roi - El cliente es rey. -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-developers. For more options, visit https://groups.google.com/groups/opt_out.
