user3690462
user3690462

Reputation: 11

Auto filled Current Password on Change Password page

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

Answers (3)

bart
bart

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

Dreamwalker
Dreamwalker

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

oussama.tn
oussama.tn

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

Related Questions