handle login failure when revalidating authz
All checks were successful
Build / build (pull_request) Successful in 49s

This commit is contained in:
Sainan 2025-06-21 05:06:05 +02:00
parent 21d46d3caa
commit 4d972f2ead

View File

@ -61,7 +61,11 @@ function openWebSocket() {
if ("auth_fail" in msg) { if ("auth_fail" in msg) {
auth_pending = false; auth_pending = false;
logout(); logout();
alert(loc(msg.auth_fail.isRegister ? "code_regFail" : "code_loginFail")); if (single.getCurrentPath() == "/webui/") {
alert(loc(msg.auth_fail.isRegister ? "code_regFail" : "code_loginFail"));
} else {
single.loadRoute("/webui/");
}
} }
if ("logged_out" in msg) { if ("logged_out" in msg) {
sendAuth(); sendAuth();