Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it OK to be able to paste text in a password box?

What do you web developers think? Should we disable pasting in masked password boxes in our web applications or not. Could this be a security hole or cause confusion or unwanted results? This is probably a question about user experience and not so much about programming.

like image 858
Slavo Avatar asked Nov 27 '22 13:11

Slavo


2 Answers

Pasting is perfectly OK actually disabling sometimes can cause bigger issues. Most of the users use keepass or similar applications to store strong passwords.

If you force people to type every time this can force them to choose weaker passwords.

like image 93
dr. evil Avatar answered Dec 06 '22 17:12

dr. evil


Pasting is OK, in IMHO, and is expected. Copying, however, is usually forbidden, with good reason. That is expected now, too. You really just want to go with what most users are familiar with unless you have a really good reason not to.

like image 34
Lucas Jones Avatar answered Dec 06 '22 16:12

Lucas Jones