From bef8ee93279bcab1d95f16a3f27730c06d505b71 Mon Sep 17 00:00:00 2001 From: Chris T Date: Tue, 25 Apr 2023 07:14:29 +0100 Subject: [PATCH] Don't return 401 when auth is disabled (#9261) --- server/src/com/unciv/app/server/UncivServer.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/server/src/com/unciv/app/server/UncivServer.kt b/server/src/com/unciv/app/server/UncivServer.kt index 0101977a69..d9853cd180 100644 --- a/server/src/com/unciv/app/server/UncivServer.kt +++ b/server/src/com/unciv/app/server/UncivServer.kt @@ -78,13 +78,7 @@ private class UncivServerRunner : CliktCommand() { if (!file.exists()) return true - // Extract the user id and password from the auth string - val (userId, password) = extractAuth(authString) ?: return false - - if (authMap[userId] == null || authMap[userId] == password) - return true - - return false + return validateAuth(authString) // TODO Check if the user is the current player and validate its password this requires decoding the game file }