add default redirect

This commit is contained in:
Mystikfluu 2023-02-04 14:56:42 +01:00
parent 86f747d76a
commit e252f8e504
2 changed files with 2 additions and 2 deletions

View File

@ -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")

View File

@ -27,7 +27,7 @@ async function register() {
alert("Registration failed")
return;
}
window.location = r.url
window.location = REDIRECT_URL || "/user"
}
function passkeydown(e) {