forked from shihaam/thijooree
fix scroll bug
This commit is contained in:
@@ -180,8 +180,9 @@ class MibLoginFlow(private val prefs: android.content.SharedPreferences) {
|
||||
.add("data", encrypted)
|
||||
.build()
|
||||
val response = post(formBody)
|
||||
val result = MibCrypto.decrypt(response, session.sessionKey)
|
||||
return result
|
||||
// Server returns plain JSON (not encrypted) for error responses (e.g. expired session)
|
||||
if (response.trimStart().startsWith("{")) return JSONObject(response)
|
||||
return MibCrypto.decrypt(response, session.sessionKey)
|
||||
}
|
||||
|
||||
private fun baseData(session: MibSession, routePath: String): JSONObject = JSONObject().apply {
|
||||
|
||||
Reference in New Issue
Block a user