List Info

Thread: newforms password field filled with too many ************************s




newforms password field filled with too many ************************s
user name
2007-01-30 17:49:47
this is what I am using:
password  = forms.CharField(widget=forms.PasswordInput, 
label="Password")

even when the password is 4 characters, the '*'s fill the
text field. 
How can I get this to accurately represent the number of
characters in 
the password?

I tried max_length, but it filled up to the max (I had it at
10), then 
threw an error about too many characters in the field.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: newforms password field filled with too many ************************s
user name
2007-01-30 17:56:26
BTW, it works fine--so I suppose this is a 'feature'. My
users, 
however, may become concerned when they see the long line of
*** in 
the fields. And as many of you know... when the users are
concerned, 
we are concerned. :-/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: newforms password field filled with too many ************************s
user name
2007-01-30 20:56:20
On 1/31/07, hotani <hotanigmail.com> wrote:
>
> BTW, it works fine--so I suppose this is a 'feature'.
My users,
> however, may become concerned when they see the long
line of *** in
> the fields. And as many of you know... when the users
are concerned,
> we are concerned. :-/

When are the users getting the line of ***s? Is it when the
field
loads, or after/during the user typing in their password?

One possibility I can think of that would cause this
behaviour - Are
you are trying to put the contents of user.password into the
password
field? If so, you should be aware that the contents of
user.password
is hashed, and will always be 40 (or so) characters long.

Yours,
Russ Magee %-)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: newforms password field filled with too many ************************s
user name
2007-01-30 22:30:22
Ahhhhhhh, yes. That is it. Thanks!

Chalk up another one on the stupid mistakes board!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )