From e252f8e504b5d2a4f5d8c355f66e2526f6af2a0f Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sat, 4 Feb 2023 14:56:42 +0100 Subject: [PATCH] add default redirect --- js/login.js | 2 +- js/register.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/login.js b/js/login.js index d95ba7f..fdd5c23 100644 --- a/js/login.js +++ b/js/login.js @@ -10,7 +10,7 @@ async function login() { alert("Login failed, please make sure you have the right password") return; } - window.location = r.url + window.location = REDIRECT_URL || "/user" } let passfield = document.getElementById("pass") diff --git a/js/register.js b/js/register.js index 6988cef..899c4e7 100644 --- a/js/register.js +++ b/js/register.js @@ -27,7 +27,7 @@ async function register() { alert("Registration failed") return; } - window.location = r.url + window.location = REDIRECT_URL || "/user" } function passkeydown(e) {