mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Really fix CI
This commit is contained in:
parent
0cf608a66b
commit
f651409e87
|
@ -1,4 +1,4 @@
|
||||||
FROM adoptopenjdk:17
|
FROM eclipse-temurin:17-jre
|
||||||
|
|
||||||
WORKDIR /mangahome
|
WORKDIR /mangahome
|
||||||
ADD /build/libs/mangadex_at_home.jar /mangahome/mangadex_at_home.jar
|
ADD /build/libs/mangadex_at_home.jar /mangahome/mangadex_at_home.jar
|
||||||
|
|
|
@ -37,9 +37,8 @@ import org.slf4j.LoggerFactory
|
||||||
import java.time.OffsetDateTime
|
import java.time.OffsetDateTime
|
||||||
import java.util.Base64
|
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 box = TweetNaclFast.SecretBox(tokenKey)
|
||||||
private val isDisabled = isDisabled
|
|
||||||
|
|
||||||
override fun invoke(next: HttpHandler): HttpHandler {
|
override fun invoke(next: HttpHandler): HttpHandler {
|
||||||
return then@{
|
return then@{
|
||||||
|
|
Loading…
Reference in a new issue