add default redirect
This commit is contained in:
parent
86f747d76a
commit
e252f8e504
@ -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")
|
||||
|
@ -27,7 +27,7 @@ async function register() {
|
||||
alert("Registration failed")
|
||||
return;
|
||||
}
|
||||
window.location = r.url
|
||||
window.location = REDIRECT_URL || "/user"
|
||||
}
|
||||
|
||||
function passkeydown(e) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user