mirror of
https://github.com/linuxserver/Heimdall-Apps.git
synced 2026-02-20 04:16:08 +08:00
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