From 06a6eb23f2b3080397b8e156bc4ec09a8b2cee26 Mon Sep 17 00:00:00 2001 From: oxpoe Date: Fri, 6 Nov 2026 11:28:24 +0700 Subject: [PATCH] fix(wifi): sinkron SSID portal/teknisi + encode URL aksi teknisi - pastikan update SSID via service yang menyinkronkan wifi_ssid - encode tag pada URL ssid/password/reboot teknisi - versi 0.6.16 --- CHANGELOG.md | 6 ++++++ README.md | 2 +- package.json | 2 +- version.txt | 2 +- views/tech/monitoring.ejs | 6 +++--- 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aeb427c..d804197 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ Format mengikuti [Keep a Changelog](https://keepachangelog.com/) dan [Semantic Versioning](https://semver.org/). +## [0.6.16] — 2026-11-06 — "wifi-sync" + +### Diperbaiki +- Perubahan SSID dari **Portal Pelanggan, Teknisi, Admin, dan ACS** memakai service yang sama dan menyinkronkan `wifi_ssid` ke data pelanggan. +- URL aksi WiFi/reboot di portal teknisi memakai `encodeURIComponent`, aman untuk tag/ID yang mengandung karakter khusus. + ## [0.6.15] — 2026-11-06 — "telegram-safe" ### Diperbaiki diff --git a/README.md b/README.md index 798815a..72f11ac 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@

Lisensi: ISC - Versi 0.6.15 (telegram-safe) + Versi 0.6.16 (wifi-sync) Node.js >= 20 Docker Demo diff --git a/package.json b/package.json index c22397f..1f13523 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-isp", - "version": "0.6.15", + "version": "0.6.16", "description": "OPEN-ISP \u2014 sistem billing & manajemen ISP open-source (PWA pelanggan, multi-OLT, RADIUS, WhatsApp, QRIS)", "main": "app-customer.js", "scripts": { diff --git a/version.txt b/version.txt index 7e3c84c..a12cadd 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.6.15 \ No newline at end of file +0.6.16 \ No newline at end of file diff --git a/views/tech/monitoring.ejs b/views/tech/monitoring.ejs index 53df68d..008a1bb 100644 --- a/views/tech/monitoring.ejs +++ b/views/tech/monitoring.ejs @@ -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 = {}; }