Dar9586 / NClientV2

An unofficial NHentai android client
Apache License 2.0
1.82k stars 95 forks source link

add support for cloudflare captcha #428

Closed chayleaf closed 2 years ago

chayleaf commented 2 years ago

I simply extended the login activity to save all cookies instead of just session id, and if there's a clearly invalid response that seems like it's cloudflare it opens the login activity (but uses main site url, not login page url), and then quits when an image from the main site is requested

Kinuseka commented 2 years ago

built the apk, passed the cloudflare. This patch will work, one issue is the app is stuck on japanese language and will crash if you try to change it

chayleaf commented 2 years ago

@Kinuseka I haven't touched anything related to languages, it was like that all along in-tree