From 1a6b3d7190fab88ad9a5683ec9edfd972fc43394 Mon Sep 17 00:00:00 2001 From: trinkey <97406176+trinkey@users.noreply.github.com> Date: Mon, 26 Feb 2024 17:35:18 -0500 Subject: [PATCH] redir to home on login --- public/js/login.js | 2 +- public/js/signup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/login.js b/public/js/login.js index 7899932..d01a48f 100644 --- a/public/js/login.js +++ b/public/js/login.js @@ -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}`); diff --git a/public/js/signup.js b/public/js/signup.js index e4fe014..5438d64 100644 --- a/public/js/signup.js +++ b/public/js/signup.js @@ -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}`);