Skip to content

Commit

Permalink
fix password autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
skofman authored and skofman committed Jul 24, 2017
1 parent 94d86ae commit 0b09032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NuGetGallery/Views/Users/Account.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@
@Html.ValidationSummaryFor("ChangePassword")
<div class="form-field">
@Html.LabelFor(m => m.ChangePassword.OldPassword)
@Html.PasswordFor(m => m.ChangePassword.OldPassword)
@Html.PasswordFor(m => m.ChangePassword.OldPassword, new { autocomplete = "off" })
@Html.ValidationMessageFor(m => m.ChangePassword.OldPassword)
</div>
<div class="form-field">
@Html.LabelFor(m => m.ChangePassword.NewPassword)
@Html.PasswordFor(m => m.ChangePassword.NewPassword)
@Html.PasswordFor(m => m.ChangePassword.NewPassword, new { autocomplete = "off" })
@Html.ValidationMessageFor(m => m.ChangePassword.NewPassword)
</div>
<img src="@Url.Content("~/Content/images/required.png")" alt="Blue border on left means required." />
Expand Down

0 comments on commit 0b09032

Please sign in to comment.