added dns local domains

This commit is contained in:
wt committed 2024-07-01 18:46:32 +07:00
1 parent a7ff04b7c2
commit 77fb7b0816
15 files changed
+296 -26

No files matched your search

-3
View File
@@ -26,15 +26,12 @@ const login = async (username, password) => {
body: `{"username":"${username}","password":"${password}"}`
}).then(data => data.json()).then(jsondata => jsondata).catch((error) => {
if (error.message === "Unexpected end of JSON input") {
console.log("error")
notification(`Ошибка на сервере: Создайте файл users.json и запишите в него первого пользователя`, "error")
} else {
console.log("error")
notification(`Ошибка на сервере: ${error}`, "error")
}
})
if (response.status === "403") {
console.log("Неправильный логин или пароль")
notification("Неправильный логин или пароль", "error")
}
if (response.token) {