Updates and more
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user