3 ms·
Why would you use input type=password for that?
by jrockway 9y ago
Why would you use input type=password for that?
- ben_w 9y agoBecause it is, in fact, a password.
- deleted 9y ago[deleted]
- SamBam 9y agoYou're creating a secret token. Both the administrator and the browser should be made aware of this. The administrator, so that they don't send it to the user via an unsecure method (Tweet it publicly), the browser so that it shows warnings if the site is somehow served without ssl or is compromised. If it's something like a password, it should be treated like a password. Why shouldn't you use type=password for that?