delete console.log and startings in 127.0.0.1:43244

This commit is contained in:
wt committed 2024-07-05 14:33:59 +07:00
1 parent fb961af71c
commit 8abb0a901a
2 files changed
+2 -6

No files matched your search

+2 -2
View File
@@ -29,8 +29,8 @@ int main() {
srv.set_mount_point("/auth/css", "../src/web/css");
std::cout << GREEN << "Starting" << RESET << " server on [ " << YELLOW
<< "0.0.0.0" << RESET << ":" << CYAN << "43243" << RESET << " ]" << std::endl;
<< "127.0.0.1" << RESET << ":" << CYAN << "43243" << RESET << " ]" << std::endl;
syslog(LOG_INFO, "Authorization service started");
srv.listen("0.0.0.0", 43243);
srv.listen("127.0.0.1", 43243);
return 0;
}
-4
View File
@@ -12,7 +12,6 @@ let userdata = "";
const change_user_data = async (userid) => {
changeuserform.classList.add('active')
changedatauserid = userid
console.log(userid)
const all_users = await fetch(routes.all_users(), {
method: 'POST',
body: `{"token":"${localStorage.getItem('token')}"}`
@@ -20,10 +19,8 @@ const change_user_data = async (userid) => {
notification(`Ошибка на сервере: ${error}`, "error")
})
userdata = all_users.find(usr => usr.id === userid)
console.log(userdata)
changeuserformusername.value = userdata.username
changeuserformgroup.value = userdata.group
console.log(changeuserformissuperuser.checked)
changeuserformissuperuser.checked = userdata.is_superuser === "1"
}
@@ -48,7 +45,6 @@ changeuserformbody.addEventListener('submit', async (e) => {
}).then(data => data.json()).then(jsondata => jsondata).catch((error) => {
notification(`Ошибка на сервере: ${error}`, "error")
})
console.log(status)
if (status.status === "ok") {
notification("Данные пользователя успешно изменены", "success")
changeuserform.classList.remove('active')