1
0
mirror of https://gitlab.com/mangadex-pub/mangadex_at_home.git synced 2024-11-16 16:12:32 +01:00

Merge branch 'fix-nits' into 'master'

Really fix CI

See merge request mangadex-pub/mangadex_at_home!97
This commit is contained in:
carbotaniuman 2022-02-07 03:59:51 +00:00
commit c7830161c1
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
FROM adoptopenjdk:17
FROM eclipse-temurin:17-jre
WORKDIR /mangahome
ADD /build/libs/mangadex_at_home.jar /mangahome/mangadex_at_home.jar

View File

@ -37,9 +37,8 @@ import org.slf4j.LoggerFactory
import java.time.OffsetDateTime
import java.util.Base64
class TokenVerifier(tokenKey: ByteArray, isDisabled: Boolean) : Filter {
class TokenVerifier(tokenKey: ByteArray, private val isDisabled: Boolean) : Filter {
private val box = TweetNaclFast.SecretBox(tokenKey)
private val isDisabled = isDisabled
override fun invoke(next: HttpHandler): HttpHandler {
return then@{