Prevents users from pasting into input fields

Some websites claim that allowing users to paste passwords reduces security. However, password pasting actually improves security because it enables the use of password managers.

Password managers typically generate strong passwords for users, store them securely, and then automatically paste them into password fields whenever users need to log in. This approach is generally more secure than forcing users to type in passwords that are short enough to remember.

In the general case, users should not be prevented from pasting into <input> elements.

How this Lighthouse audit fails

Lighthouse flags code that prevents users from pasting into non-readonly input fields: