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

View File

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