Skip to content

Commit

Permalink
Type password for login page.
Browse files Browse the repository at this point in the history
JavaScript Syntax fix
  • Loading branch information
poppastring committed Sep 28, 2019
1 parent d360d0a commit 8d06f22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function commentManagement(url, commentText, httpVerb) {
var oReq = new XMLHttpRequest();

oReq.onreadystatechange = function () {
if (this.readyState == 4 && this.status == 200) {
if (this.readyState === 4 && this.status === 200) {
alert("Success!");
}
};
Expand All @@ -16,7 +16,7 @@ function commentManagement(url, commentText, httpVerb) {

function deleteEntry(entryId, entryTitle) {
if (confirm("Are you sure you want to delete this item? \n\n" + entryTitle)) {
location.href = "post/" + entryId + "/delete"
location.href = "post/" + entryId + "/delete";
}
}

Expand Down
2 changes: 1 addition & 1 deletion source/DasBlog.Web.UI/Views/Account/Login.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="form-group">
<label for="@Constants.Password" class="col-md-2 control-label">@Constants.Password</label>
<div class="col-md-10">
<input id="@Constants.Password" name="@Constants.Password" value="" class="form-control" />
<input id="@Constants.Password" name="@Constants.Password" value="" type="password" class="form-control" />
<span id="@Constants.PasswordValidationId" asp-validation-for="@Constants.Password" class="text-danger"></span>
</div>
</div>
Expand Down

0 comments on commit 8d06f22

Please sign in to comment.