improve error message when registration failed
All checks were successful
Build / build (pull_request) Successful in 1m32s
Build / build (push) Successful in 1m4s

This commit is contained in:
Sainan 2025-04-23 00:02:52 +02:00
parent 547f7cb61d
commit 88cbe96fa1

View File

@ -13,6 +13,7 @@ function doLogin() {
}
function loginFromLocalStorage() {
const isRegister = registerSubmit;
doLoginRequest(
data => {
if (single.getCurrentPath() == "/webui/") {
@ -28,7 +29,7 @@ function loginFromLocalStorage() {
},
() => {
logout();
alert("Login failed");
alert(isRegister ? "Registration failed. Account already exists?" : "Login failed");
}
);
}