Jay Collett f1ccbd5dbb Fix UniFi app test() method to properly validate credentials
The test() method was using appTest() which only checked HTTP status codes,
causing false "Invalid credentials" errors even when credentials were valid.
This fix aligns the test() method with the working livestats() approach.

Changes:
- Use execute() directly with explicit POST method (same as livestats)
- Handle HTTP 400 errors for self-hosted controller auth failures
- Handle HTTP 401/403 errors for UDM auth failures
- Validate self-hosted response body (meta.rc === "ok")
- Verify login by fetching stats to confirm session is valid
- Provide descriptive error messages for different failure scenarios

Fixes #640, #695, #811
2026-02-02 14:48:58 +01:00
..
2024-02-02 23:42:24 +01:00
2024-02-02 22:42:35 +00:00