DEV Community

Discussion on: How to prevent pasting into input fields

caseywebb profile image
Casey Webb

Unless you have nothing but contempt for users of password managers, do not do this. Ever. Period.

While I'm at it, don't enforce arbitrary whitelisting/blacklisting of special characters, and if you're going to enforce a max-length make it at least 32 chars.