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) {