mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13.git
synced 2026-07-16 21:12:24 +01:00
Merge pull request #16116 from LetterN/patch-11
[s] ensure key config is set for any secure request
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
var/require_comms_key = FALSE
|
||||
|
||||
/datum/world_topic/proc/TryRun(list/input, addr)
|
||||
key_valid = config && (CONFIG_GET(string/comms_key) == input["key"])
|
||||
key_valid = (CONFIG_GET(string/comms_key) == input["key"]) && CONFIG_GET(string/comms_key) && input["key"]
|
||||
if(require_comms_key && !key_valid)
|
||||
return "Bad Key"
|
||||
input -= "key"
|
||||
|
||||
Reference in New Issue
Block a user