make a default password for password textboxes that can't be reproduced by the client

Posted by user420667 on Stack Overflow See other posts from Stack Overflow or by user420667
Published on 2012-03-27T17:12:14Z Indexed on 2012/03/27 17:29 UTC
Read the original article Hit count: 199

Filed under:
|

Is it possible to set a password textbox text to text that the user could not reproduce on their end?

Like are there special characters that can only be set from the server?

For instance, one way to do this would be to use javascript to prevent typing of *'s, and to set the textbox text to be all *'s. But that's hacky.

The motivation is to be able to tell on the server if the user changed the password at all, but not to restrict them from having a password of all *'s, for instance.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET