While I have never heard of it being "frequent practice" I will accept that 
as a given. I also don't mind it at all, so I don't see the need to override
AuthenticationForm. It is just unfortunate that this is an edge case that
can be screwed up due to a user's OS


On Wednesday, July 3, 2013 2:36:49 PM UTC-5, is_null wrote:
>
> On Wed, Jul 3, 2013 at 7:25 PM, C. Kirby <[email protected] <javascript:>> 
> 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.


Reply via email to