mirror of
https://github.com/AllanWang/Frost-for-Facebook.git
synced 2024-11-12 14:03:00 +01:00
Apply sensitive string to start activity logger
This commit is contained in:
parent
e0af746bc8
commit
37cd65102f
@ -32,6 +32,7 @@ import com.mikepenz.google_material_typeface_library.GoogleMaterial
|
||||
import com.pitchedapps.frost.activities.LoginActivity
|
||||
import com.pitchedapps.frost.activities.MainActivity
|
||||
import com.pitchedapps.frost.activities.SelectorActivity
|
||||
import com.pitchedapps.frost.dbflow.CookieModel
|
||||
import com.pitchedapps.frost.dbflow.loadFbCookiesSync
|
||||
import com.pitchedapps.frost.facebook.FbCookie
|
||||
import com.pitchedapps.frost.utils.EXTRA_COOKIES
|
||||
@ -72,7 +73,7 @@ class StartActivity : KauBaseActivity() {
|
||||
loadFbCookiesSync()
|
||||
})
|
||||
L.i { "Cookies loaded at time ${System.currentTimeMillis()}" }
|
||||
L._d { "Cookies: ${cookies.joinToString("\t")}" }
|
||||
L._d { "Cookies: ${cookies.joinToString("\t", transform = CookieModel::toSensitiveString)}" }
|
||||
loadAssets()
|
||||
when {
|
||||
cookies.isEmpty() -> launchNewTask<LoginActivity>()
|
||||
|
@ -70,7 +70,6 @@ class FrostCookieInterceptor : Interceptor {
|
||||
override fun intercept(chain: Interceptor.Chain): Response {
|
||||
val origRequest = chain.request()
|
||||
val cookie = FbCookie.webCookie ?: return chain.proceed(origRequest)
|
||||
L.v { "Add cookie to req $cookie" }
|
||||
val request = origRequest.newBuilder().addHeader("Cookie", cookie).build()
|
||||
return chain.proceed(request)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user