diff --git a/server/src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt b/server/src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt index 5f857152e..a900b0b84 100644 --- a/server/src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt +++ b/server/src/main/kotlin/suwayomi/tachidesk/server/JavalinSetup.kt @@ -108,7 +108,7 @@ object JavalinSetup { app.beforeMatched { ctx -> fun credentialsValid(): Boolean { - val basicAuthCredentials = ctx.basicAuthCredentials() ?: return true + val basicAuthCredentials = ctx.basicAuthCredentials() ?: return false val (username, password) = basicAuthCredentials return username == serverConfig.basicAuthUsername.value && password == serverConfig.basicAuthPassword.value