mirror of https://github.com/xfarrow/blink
fix
This commit is contained in:
parent
09dfcc0069
commit
1565cab2ba
|
@ -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>
|
||||||
|
|
|
@ -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">
|
||||||
|
|
Loading…
Reference in New Issue