From ea2f291025fd428a53f6570a33fdfb54f8a923e8 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Fri, 23 Aug 2019 21:35:23 +0200 Subject: [PATCH] Remove reference to old authentication scheme Remove long comment and commented out code about an old sanity check in /api/place. --- master.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/master.js b/master.js index 94615de0..8c9b8d7c 100644 --- a/master.js +++ b/master.js @@ -475,8 +475,7 @@ app.post("/api/place", authenticate.middleware, function(req, res) { } if(x.instanceID && x.instanceName - && !isNaN(Number(x.count))// This is in no way a proper authentication or anything, its just to make sure everybody are registered as slaves before modifying the cluster (or not, to maintain backwards compat) - /*&& stringUtils.hashCode(slaves[x.unique].rconPassword) == x.unique*/ + && !isNaN(Number(x.count)) && x.name && typeof x.name == "string"){ if(config.logItemTransfers){