Don't return 401 when auth is disabled (#9261)

This commit is contained in:
Chris T
2023-04-25 07:14:29 +01:00
committed by GitHub
parent dc223f8cab
commit bef8ee9327

View File

@ -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
}