Seoxpert.io
lowOn-Page SEO

Password Fields Missing `autocomplete="current-password"` / `"new-password"`

Password fields lack proper autocomplete hints, confusing password managers and harming user experience.

By Seoxpert Editorial · Published

Why it matters

Proper autocomplete attributes help password managers distinguish between login and signup forms, improving autofill accuracy. Missing or incorrect hints can cause users to enter passwords manually, leading to weaker security and frustration.

Impact

Users may experience poor autofill behavior, leading to password reuse, weaker passwords, and higher abandonment rates.

How it's detected

Automated crawlers scan for password input fields missing autocomplete hints or using autocomplete="off".

Common causes

  • Developers omitting the autocomplete attribute on password fields
  • Use of autocomplete="off" in an attempt to block autofill
  • Copy-pasting form code without updating autocomplete values
  • Lack of awareness of modern password manager behavior

How to fix it

Set autocomplete="current-password" on login password fields. Use autocomplete="new-password" on signup and confirm-password fields. Remove autocomplete="off" from all password inputs, as it no longer prevents autofill and confuses password managers.

Code examples

Problem: Missing or incorrect autocomplete attribute

<!-- Login form with autocomplete missing or set to off -->
<form>
  <input type="password" name="password" autocomplete="off">
</form>

Fix: Use correct autocomplete attribute for login

<!-- Login form with correct autocomplete -->
<form>
  <input type="password" name="password" autocomplete="current-password">
</form>

Fix: Use correct autocomplete attribute for signup and confi

<!-- Signup form with correct autocomplete -->
<form>
  <input type="password" name="new-password" autocomplete="new-password">
  <input type="password" name="confirm-password" autocomplete="new-password">
</form>

FAQ

Why shouldn't I use autocomplete="off" on password fields?

Modern browsers ignore autocomplete="off" on password fields, and it can confuse password managers, leading to poor autofill behavior.

What is the difference between autocomplete="current-password" and autocomplete="new-password"?

Use autocomplete="current-password" for login forms and autocomplete="new-password" for signup or password change forms so password managers behave correctly.

Do I need to set autocomplete on confirm password fields?

Yes, set autocomplete="new-password" on confirm password fields to help password managers recognize them as part of account creation or password change.

Will fixing autocomplete attributes improve my SEO rankings?

While not a direct ranking factor, proper autocomplete improves user experience, which can reduce churn and indirectly benefit SEO.

Found this issue on your site?

Run a scan to see if Password Fields Missing `autocomplete="current-password"` / `"new-password"` affects your pages.

Scan my website →