mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-23 21:22:39 +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())
|
if (!file.exists())
|
||||||
return true
|
return true
|
||||||
|
|
||||||
// Extract the user id and password from the auth string
|
return validateAuth(authString)
|
||||||
val (userId, password) = extractAuth(authString) ?: return false
|
|
||||||
|
|
||||||
if (authMap[userId] == null || authMap[userId] == password)
|
|
||||||
return true
|
|
||||||
|
|
||||||
return false
|
|
||||||
|
|
||||||
// TODO Check if the user is the current player and validate its password this requires decoding the game file
|
// 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