mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-23 13:10:54 +07:00
Don't return 401 when auth is disabled (#9261)
This commit is contained in:
parent
dc223f8cab
commit
bef8ee9327
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user