Skip to content

Commit

Permalink
ensure key config is set for any secure request
Browse files Browse the repository at this point in the history
  • Loading branch information
LetterN authored Dec 4, 2024
1 parent 64b809f commit 7484f7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/world_topic.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
var/require_comms_key = FALSE

/datum/world_topic/proc/TryRun(list/input)
key_valid = config && config_legacy.comms_key == input["key"] && (config_legacy.comms_key != initial(config_legacy.comms_key)) //no fucking defaults allowed.
key_valid = config_legacy.comms_key == input["key"] && (config_legacy.comms_key != initial(config_legacy.comms_key)) && config_legacy.comms_key && input["key"] //no fucking defaults allowed.
//key_valid = config && (CONFIG_GET(string/comms_key) == input["key"])
if(require_comms_key && !key_valid)
return "Bad Key"
Expand Down

0 comments on commit 7484f7c

Please sign in to comment.