Unifi-Voucher-Tool/includes
Claude e0a999b27b
Login only once per UniFiController instance to avoid rate limiting
createVoucher() calls apiRequest() twice (cmd/hotspot + stat/voucher),
which previously triggered two separate login requests in rapid succession.
The UniFi controller was rate-limiting the second attempt with 403.

Fix: $loggedIn flag ensures login() is a no-op after the first successful
authentication, reusing the existing session cookie for all API calls.

https://claude.ai/code/session_01UsuvFAmmeagtQa14QA4iaq
2026-04-22 05:52:45 +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 Login only once per UniFiController instance to avoid rate limiting 2026-04-22 05:52:45 +00:00