mirror of
https://github.com/kmitresse/Cards-Rush.git
synced 2026-05-16 09:05:28 +00:00
fix(DevWeb): Login redirection and create session for the logged user
This commit is contained in:
@@ -17,7 +17,7 @@ loginForm.addEventListener("submit", (event) => {
|
||||
.then(res => res.json())
|
||||
.then(data => {
|
||||
console.log(data);
|
||||
if (data.status === 200 && data.nextUrl) window.location.href = data.nextUrl;
|
||||
if (data.status === 200) window.location.href = data.redirect;
|
||||
})
|
||||
.catch(error => console.error("Error:", error))
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user