Skip to content

Commit

Permalink
Merge pull request #78 from Dark25/BetterAnime
Browse files Browse the repository at this point in the history
fix(en/BetterAnime): Update LoginInterceptor
  • Loading branch information
Dark25 authored Sep 11, 2024
2 parents 96f250c + 79c3011 commit ed86667
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pt/betteranime/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Better Anime'
extClass = '.BetterAnime'
extVersionCode = 11
extVersionCode = 12
}

apply from: "$rootDir/common.gradle"
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ internal class LoginInterceptor(
val formBody = FormBody.Builder()
.add("_token", token)
.add("g-recaptcha-response", recaptchaToken)
.add("email", String(Base64.decode("aGVmaWczNTY0NUBuYW1ld29rLmNvbQ==", Base64.DEFAULT)))
.add("password", String(Base64.decode("SE1HNFdoVEI0QnRJWTlIdg==", Base64.DEFAULT)))
.add("email", String(Base64.decode("YmV0dGVyYW5pbWVhY2NvdW50QHN0YXJtYWlsLm5ldA==", Base64.DEFAULT)))
.add("password", String(Base64.decode("QCNGJDA3SjhpIV4xNElqYk4hOEUjMkQ0Z2FOJF5A", Base64.DEFAULT)))
.build()

val loginRes = chain.proceed(POST("$baseUrl/login", headers, formBody))
Expand Down

0 comments on commit ed86667

Please sign in to comment.