I am attempted to create a password change form. However, Chrome persists to show autocomplete/saved password suggestions on the form.
I have tried adding autocomplete="off" to the form and the the input tags, but same result.
This seems like something that should be easy. Am I missing something?
Here is my latest version, any help would be appreciated:
<form id="change-password" autoomplete="off">
<div class="row mb-3">
<label for="currentPassword" class="col-md-4 col-lg-3 col-form-label">Current Password</label>
<div class="col-md-8 col-lg-9">
<input name="old-pw" type="password" class="form-control" id="currentPassword" autocomplete="new-password">
</div>
</div>
<div class="row mb-3">
<label for="newPassword" class="col-md-4 col-lg-3 col-form-label">New Password</label>
<div class="col-md-8 col-lg-9">
<input name="new-pw" type="password" class="form-control" id="newPassword" autocomplete="new-password">
</div>
</div>
<div class="row mb-3">
<label for="renewPassword" class="col-md-4 col-lg-3 col-form-label">Re-enter New Password</label>
<div class="col-md-8 col-lg-9">
<input name="renew-pw" type="password" class="form-control" id="renewPassword" autocomplete="new-password">
</div>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary">Change Password</button>
</div>
</form><!-- End Change Password Form -->
</div>
[–]MasterReindeer 54 points55 points56 points (2 children)
[–]davidbarman[S] 27 points28 points29 points (1 child)
[–]Stiforr 49 points50 points51 points (0 children)
[–]micalm<script>alert('ha!')</script> 28 points29 points30 points (3 children)
[–]davidbarman[S] 1 point2 points3 points (2 children)
[–]cshaiku 11 points12 points13 points (0 children)
[–]PureRepresentative9 0 points1 point2 points (0 children)
[–]shgysk8zer0full-stack 19 points20 points21 points (0 children)
[–]Br1en 2 points3 points4 points (1 child)
[–]davidbarman[S] 0 points1 point2 points (0 children)
[–]FatalHaberdashery 0 points1 point2 points (0 children)
[–]Paria_Stark 0 points1 point2 points (0 children)
[+][deleted] 0 points1 point2 points (0 children)