draft - devweb - login

This commit is contained in:
kmitresse
2024-04-03 14:36:14 +02:00
parent 677c68f37e
commit ff7e2687c2
3 changed files with 48 additions and 21 deletions
@@ -15,11 +15,10 @@ loginForm.addEventListener("submit", (event) => {
body: JSON.stringify(data),
method,
})
.then(res => res.json())
.then(data => {
console.log(data);
.then(res => console.log(res))
//.then(data => {
// if (data.status === 200) window.location.href = data.redirect;
})
//})
.catch(error => console.error("Error:", error))
;
});