This commit is contained in:
xfarrow 2024-03-21 09:36:16 +01:00
parent 09dfcc0069
commit 1565cab2ba
2 changed files with 4 additions and 2 deletions

View File

@ -34,6 +34,7 @@
</div> </div>
<script src="../js/constants.js"></script> <script src="../js/constants.js"></script>
<script src="../js/utils.js"></script>
<script> <script>
async function login() { async function login() {
const email = document.getElementById("email").value; const email = document.getElementById("email").value;
@ -61,7 +62,8 @@
document.cookie = `token=${data.token};`; document.cookie = `token=${data.token};`;
window.location.href = 'userprofile.html?id=me'; window.location.href = 'userprofile.html?id=me';
} else { } else {
callbackErrors(data.errors, alert); alert(data.error);
//callbackErrors(data.errors, alert);
} }
} }
</script> </script>

View File

@ -24,7 +24,7 @@
</div> </div>
</div> </div>
<div class="container" style="display: none;"> <div class="container">
<div class="edit-badge" style="display: none;" id="editBadge" onclick="editProfile()">Edit</div> <div class="edit-badge" style="display: none;" id="editBadge" onclick="editProfile()">Edit</div>
<header> <header>
<img src="../content/profile-picture-example.jpg" alt="Profile Picture" class="profile-picture"> <img src="../content/profile-picture-example.jpg" alt="Profile Picture" class="profile-picture">