Reputation: 11
I'm testing a page for "Change Password". The user I've logged in with has already saved the Password with browser. The problem is that whenever I open the "Change Password" page, the Current Password is shown to be filled in already. I'm not sure this is an issue or is correct. Please help me whether this is an issue or is correct.
Upvotes: 1
Views: 437
Reputation: 15298
I know this is an old question, but for those still looking for an answer, you can use the attribute autofill='new-password'
.
Complete example;
<input type="password" autocomplete="new-password">
Upvotes: 0
Reputation: 3035
You need to add the attribute below to your password input.
autocomplete="off"
Please note though that latest versions of major browsers are not supporting this attribute any more.
Upvotes: 1
Reputation: 299
First, I guess it would be better if you put your code. Secondly, if the password is already filled maybe the value attribute in your input is not empty! Check it out :) Example:
<input type="password" name="password" value="someValue">
Upvotes: 0