I have to disable browser prompt to remember the password on login form, I have tried AUTOCOMPLETE="OFF" but it doesn't work
Asked
Active
Viewed 1,002 times
1
-
4This is functionality of browser you can't control – monkeyinsight Sep 30 '14 at 05:30
-
You can't. The settings in a user's browser are their concern, not yours. – NTK88 Sep 30 '14 at 05:41
-
Try this links. http://stackoverflow.com/questions/32369/disable-browser-save-password-functionality. This will help you. – Isha John Sep 30 '14 at 13:01
2 Answers
0
Can you please share your code. Especially that password tag.
I have faced the same problem. But this has fixed by below code.
@Html.TextBoxFor(m => m.Password, new { @id ="Password", @Placeholder = "Password", @type = "Password", @required = "required", @Value = "", @autocomplete = "off" })

Power Star
- 1,724
- 2
- 13
- 25
0
Try this HTML:
<input type="text" name="password" required autocomplete="off">
and JS:
function validate() {
$("input[name='password']").attr("type", "password");
}
$('input[name="username"]').on('keyup click', validate);
$('input[name="password"]').on('keyup click', validate);

mrcyclo
- 1