Skip to content

Commit

Permalink
Merge pull request #4461 from NuGet/autoc
Browse files Browse the repository at this point in the history
Fix password autocomplete
  • Loading branch information
skofman1 committed Jul 24, 2017
2 parents c08fbca + 0b09032 commit 1184ad8
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 1184ad8

Please sign in to comment.