Screpy - AI SEO Audit Tool New Screpy is coming 🎉

The problem in Pasting into Password Field

Your page may prevent users from pasting their passwords into the relevant fields. This actually restricts security improvement. Let's see how to fix this problem!

Reviewed by Screpy Editorial Team

Google Lighthouse flags such situations and notifies you. Like in the image:

Pasting into Password Field

The system collects all <input type = "password"> codes to do this. It then pasted into each element. This allows the system to verify that the content of the element is set to be pasted text.

Google lighthouse cannot perform detecting in two situations:

  1. If the page doesn’t use <input type = "password"> code,
  2. If pasting takes place outside of the paste event listener

How to pass the audit? – Finding the code preventing pasting

You can find the code that prevents password pasting by following the steps below:

  1. First, press Control + Shift + J. Mac users can press Command + Option + J. This action will activate Google DevTools.
  2. Then click on the Sources tab.
  3. Continue by expanding the Event Listener Breakpoints pane.
  4. Open the Clipboard list.
  5. Continue by typing paste in the checkbox.
  6. Try pasting a password into one of the password fields on your page.
  7. DevTools pauses at the first line of the corresponding code.

How to remove the code preventing pasting?

In many cases, the main problem is the code snippet called preventDefault(). You can remove the entire event listener.

let input = document.querySelector('input');

input.addEventListener('paste', (e) => { e.preventDefault(); // This is what prevents pasting. });

Related tasks

Solve the errors logged to the console

If there are error warnings about your website within the console offered by the browser, you need to follow a few basic steps to resolve them.

Tuesday, December 22, 2020

Title Tags Not Found

Are you encountering the title meta tag not found the issue? You can solve it right away! Here are the causes and importance of the problem in detail.

Sunday, December 20, 2020

Robots.txt Not Found

If you are encountering the Robots.txt not found error, you can create your file immediately by paying attention to the steps below. Discover the details now!

Sunday, December 20, 2020

Not Crawlable Pages

Have the same problem with crawlability issues? Let’s see what you can do for your website to be indexed. Here are the ways and solutions!

Sunday, December 20, 2020

Meta Description Not Found

Are you getting a meta description not found a warning about your web page? Let's figure it out! Why is meta description important, how to pass the audit? Examine!

Sunday, December 20, 2020