fix(wifi): sinkron SSID portal/teknisi + encode URL aksi teknisi
All checks were successful
CI / test (push) Successful in 2m37s

- pastikan update SSID via service yang menyinkronkan wifi_ssid
- encode tag pada URL ssid/password/reboot teknisi
- versi 0.6.16
This commit is contained in:
oxpoe
2026-11-06 11:28:24 +07:00
parent 81d6e79e90
commit 06a6eb23f2
5 changed files with 12 additions and 6 deletions

View File

@@ -412,15 +412,15 @@ document.getElementById('btn-submit-action').addEventListener('click', async fun
if (type === 'ssid') {
const ssid = document.getElementById('new-ssid').value.trim();
if (!ssid) return alert('SSID tidak boleh kosong');
url = `/tech/api/device/${tag}/ssid`;
url = `/tech/api/device/${encodeURIComponent(tag)}/ssid`;
body = { ssid };
} else if (type === 'pass') {
const password = document.getElementById('new-password').value.trim();
if (password.length < 8) return alert('Password minimal 8 karakter');
url = `/tech/api/device/${tag}/password`;
url = `/tech/api/device/${encodeURIComponent(tag)}/password`;
body = { password };
} else if (type === 'reboot') {
url = `/tech/api/device/${tag}/reboot`;
url = `/tech/api/device/${encodeURIComponent(tag)}/reboot`;
body = {};
}