how to remove password suggestion Chrome
Asked Answered
B

4

15

When I am trying to change password in Chrome, there is always a dropdown list with "Use password for:" options. Is it possible to remove it? I have tried autocomplete="off" and autocomplete="false" but without success.

enter image description here

Backbend answered 27/8, 2015 at 9:40 Comment(0)
B
4

According to the spec, if you expect a new password to be filled in (which is why you would not expect auto-completion for example), you should rather specify autocomplete="new-password" for the input field.

This instruction is recognized by chrome.

Bleeding answered 14/8, 2016 at 14:23 Comment(4)
on chrome Version 85.0.4183.102 (Official Build) (64-bit) not workingFraktur
this activates the functionality of google chrome that suggest a new strong password... so I mark this answer as useful, thanksDalessio
This does not actually work completely. When using autocomplete="new-password" Chrome will not autofill the password, but will suggest the stored password and provide an option to generate a strong password. This is not sufficient when creating a "Change Password" form since you do not want to allow other people to fill in the existing password. "new-password" should be turning off any ability to get the current password except by typing it.Highboy
Not working. Still suggesting stored login credentials.Achates
F
3

I had the same problem it seems difficult to solve I found a solution To solve the problem,
the input in initialization must be equal to type="text" and then change to type="password" with the first focus or insert input

function changeTypeInput(inputElement){ 
  inputElement.type="password" 
}
<input type="text"
  id="anyUniqueId"  
  onfocus="changeTypeInput(this)"
  oninput="changeTypeInput(this)"
/>
Fraktur answered 21/9, 2020 at 10:52 Comment(1)
A hack, but a good one under current circumstances!Achates
K
2

They reported this as a bug in the Chromium project, but seems Google never actually looked at it or fixed it.

A workaround would be to change the name of the field.

You can also add invisible input fields, a demo could be found here.

Karlise answered 27/8, 2015 at 11:52 Comment(0)
H
-1

You can change the password to text and onclick function to again change as password

<input type="text" class="form-control" id="old_password" required onclick="$(this).attr('type', 'password');">
Hayden answered 4/5, 2023 at 12:9 Comment(1)
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewAppalachia

© 2022 - 2024 — McMap. All rights reserved.