redir to home on login

This commit is contained in:
trinkey 2024-02-26 17:35:18 -05:00
parent 28589f8a7b
commit 1a6b3d7190
2 changed files with 2 additions and 2 deletions

View file

@ -38,7 +38,7 @@ dom("submit").addEventListener("click", function() {
if (json.valid) {
setCookie("token", json.token);
localStorage.setItem("token", json.token);
window.location.href = "/editor";
window.location.href = "/home";
} else {
dom("submit").removeAttribute("disabled");
showlog(`Unable to login! Reason: ${json.reason}`);

View file

@ -38,7 +38,7 @@ dom("submit").addEventListener("click", function() {
if (json.valid) {
setCookie("token", json.token);
localStorage.setItem("token", json.token);
window.location.href = "/editor";
window.location.href = "/home";
} else {
dom("submit").removeAttribute("disabled");
showlog(`Unable to create account! Reason: ${json.reason}`);