fix: "logged in elsewhere" when logging in on account created via webui #1800

Merged
Sainan merged 2 commits from register-fix into main 2025-04-23 11:37:32 -07:00
Showing only changes of commit 88cbe96fa1 - Show all commits

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");
}
);
}