mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-17 01:21:48 +00:00
draft - devweb - login
This commit is contained in:
@@ -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))
|
||||
;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user