31 lines
1.1 KiB
Markdown
31 lines
1.1 KiB
Markdown
# Fix V22 - Auth response parsing
|
|
|
|
Base: V21 login-server-fix.
|
|
|
|
Problem:
|
|
- The app reached the Xtream server, but showed "Identifiants invalides ou serveur incorrect".
|
|
- Many Xtream servers return auth/status inside `user_info`, for example:
|
|
`{"user_info":{"auth":1,"status":"Active"}, ...}`
|
|
- The previous login logic checked `auth` at the root level, which is often absent.
|
|
- Result: false invalid-login message even when credentials are correct.
|
|
|
|
Fix:
|
|
- AuthRepository now reads:
|
|
- `response.userInfo.auth` first
|
|
- fallback to root `response.auth`
|
|
- `response.userInfo.status` first
|
|
- fallback to root `response.status`
|
|
- It accepts `auth = 1` and `auth = true`.
|
|
- It keeps the V21 temporary server save fix.
|
|
- It restores previous config on failed login.
|
|
|
|
Scope:
|
|
- Only AuthRepository.kt and version number are changed.
|
|
- Login input dialog/focus from V19/V20 stays.
|
|
- Server URL normalization from V21 stays.
|
|
- No changes to LIVE, replay, player, search, YouTube, recent LIVE, continue watching, or home scroll.
|
|
|
|
Version:
|
|
- versionCode = 22
|
|
- versionName = 2.0.22-auth-response-fix
|