Unifi-Voucher-Tool/includes
Claude 2874ca0839
Fix UniFi OS API login validation and HTTP method handling
- Login: replace fragile unique_id/email check with proper HTTP 200 trust +
  explicit meta.rc=error detection (matches Art-of-WiFi reference impl)
- Login: add TOKEN cookie fallback for CSRF token extraction in case
  the X-CSRF-Token response header is absent (some firmware versions)
- getVouchers(): pass explicit 'GET' method instead of relying on cURL default
- apiRequest(): use CURLOPT_HTTPGET for GET requests; send CURLOPT_POSTFIELDS
  as empty object for POST with no data; CSRF header only on non-GET requests
- Remove array_filter() header construction, replace with clean conditional append

https://claude.ai/code/session_01UsuvFAmmeagtQa14QA4iaq
2026-04-21 18:29:50 +00:00
..
Auth.php Fix sites freeze bug, add features and shorten README 2026-04-21 16:08:08 +00:00
Database.php Fix sites freeze bug, add features and shorten README 2026-04-21 16:08:08 +00:00
Mailer.php Fix sites freeze bug, add features and shorten README 2026-04-21 16:08:08 +00:00
UniFiController.php Fix UniFi OS API login validation and HTTP method handling 2026-04-21 18:29:50 +00:00