I read a lot regarding password autocomplete, whether to let the browser to autocomplete the user-password for login or not.
Although a lot of information regarding this is not updated with the new versions of the browsers.
Solutions I tried:
When I tried to disable the password autocomplete by
autocomplete="off"
autocomplete="new-password"
autocomplete="nope"
...
Even tried to make the field readonly and in js to remove the readonly - didn't worked.
Tried to make another password field with display: none
- No luck.
One step back:
So, I was trying to figure why the browsers ignores my needs and tried to find sense.
I took one step back and asked whether it is a good practice to disable password autocomplete.
I read that disabling autocomplete might weakens your security (as the user will use a weak password in order to remember it).
My question is what is the best practice here? should a website let password autocompletion or not?
Thanks