Skip to content

Commit

Permalink
Changed error texts and hidden passwords
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxcucus committed Sep 17, 2023
1 parent 688e502 commit 8a5bee8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>Account (Under development)</h1><br>
to delete your own user account provided that you submit the account credentials.</p>
<form onsubmit="return false;" method="post">
<p><input class="w3-input w3-padding-16" type="text" id="username" placeholder="Username" required name="username"></p>
<p><input class="w3-input w3-padding-16" type="text" id="password" placeholder="Password" required name="password"></p>
<p><input class="w3-input w3-padding-16" type="password" id="password" placeholder="Password" required name="password"></p>
<p><button class="w3-button w3-light-grey w3-section" type="submit" onclick="login()">DELETE ACCOUNT</button></p>
</form>
</div>
Expand Down Expand Up @@ -131,7 +131,7 @@ <h1>Account (Under development)</h1><br>
if (xhrDeactivate.readyState == 4 && xhrDeactivate.status == 200) {
window.alert("User " + myUsername + "was deleted");
} else {
window.alert("Error when deleting user: " + xhrDeactivate.status);
window.alert("Error when deleting user(" + xhrDeactivate.status + "): user does not exist or credentials are not correct");
}
}

Expand All @@ -147,7 +147,7 @@ <h1>Account (Under development)</h1><br>
});
xhrDeactivate.send(bodyDeactivate);
} else {
window.alert("Error when deleting user: " + xhr.status);
window.alert("Error when deleting user:(" + xhr.status + "): user does not exist or credentials are not correct");
}
};

Expand Down

0 comments on commit 8a5bee8

Please sign in to comment.