Permalink
Browse files

Merge pull request #4461 from NuGet/autoc

Fix password autocomplete
  • Loading branch information...
2 parents c08fbca + 0b09032 commit 1184ad8c6f3b9b62873ca567a85d762779853162 @skofman1 skofman1 committed on GitHub Jul 24, 2017
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/NuGetGallery/Views/Users/Account.cshtml
@@ -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." />

0 comments on commit 1184ad8

Please sign in to comment.