Migrate to UniFi OS API (port 11443)

- Update login endpoint: /api/login → /api/auth/login
- Add X-CSRF-Token extraction via CURLOPT_HEADERFUNCTION in login()
- Inject X-CSRF-Token header into all POST requests in apiRequest()
- Prefix all API paths with /proxy/network (createVoucher, getVouchers, deleteVoucher)
- Update admin/sites.php placeholder and help text to reflect port 11443
- Update Readme.md: fix GitHub clone URL, update port references, rewrite
  API documentation section for UniFi OS, add UniFi OS troubleshooting entry,
  bump version to 2.1.0

https://claude.ai/code/session_01UsuvFAmmeagtQa14QA4iaq
This commit is contained in:
Claude 2026-04-21 15:54:56 +00:00
parent dbdc237fa1
commit 3fd9b2190a
No known key found for this signature in database
3 changed files with 61 additions and 21 deletions

View file

@ -532,9 +532,9 @@ $currentUser = $auth->getCurrentUser();
<div class="form-group">
<label for="controller_url">Controller URL *</label>
<input type="url" id="controller_url" name="controller_url" required
placeholder="https://unifi.example.com:8443">
placeholder="https://unifi.example.com:11443">
<small style="color: #999; font-size: 12px;">
Vollständige URL inklusive Port (meist 8443)
Vollständige URL inklusive Port (meist 11443 für UniFi OS)
</small>
</div>