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 |
||
|---|---|---|
| .. | ||
| Auth.php | ||
| Database.php | ||
| Mailer.php | ||
| UniFiController.php | ||