Updates and more

This commit is contained in:
2023-11-12 22:43:42 +01:00
parent 7450ecdabb
commit 3889f28eb8
43 changed files with 5188 additions and 322 deletions

View File

@@ -11,7 +11,7 @@
let {tokenStore} = await import("./repo/repo.ts");
if (username === "" || token === "") {
token = "";
alert(t("login.error"));
error = t("login.error");
return;
}
try {
@@ -22,7 +22,7 @@
}).then(res => res.json());
if (res.name !== username) {
alert(t("login.error"));
error = t("login.error");
token = "";
return;
}
@@ -30,7 +30,7 @@
tokenStore.set(token);
window.location.href = l("/dashboard");
} catch (e) {
alert(t("login.error"));
error = t("login.error");
token = "";
return;
}