Skip to content

Commit

Permalink
SignUp changes to exception error
Browse files Browse the repository at this point in the history
  • Loading branch information
LRPerzus committed Feb 10, 2023
1 parent 024e219 commit 97b89a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions logout.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ $(document).ready(function () {
$("#makeaccount-submit").on("click", function (e) {
e.preventDefault()

document.getElementById("form-username").innerHTML = ``
document.getElementById("form-email").innerHTML = ``

for (var i = 0; i < response.length; i++){
if (Object.values(response[i]).indexOf($("#account-username").val())>-1){
document.getElementById("form-username").innerHTML += `<small id="username-taken">UserNameTaken</small>`
Expand Down
1 change: 0 additions & 1 deletion userinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
<div id="userinfo">
<i><i class="fa fa-user-secret user"></i></i>
</div>

<button onclick="">LogOut</button>


Expand Down

0 comments on commit 97b89a7

Please sign in to comment.