Remove reference to old authentication scheme

Remove long comment and commented out code about an old sanity check in
/api/place.
This commit is contained in:
Hornwitser committed 2019-08-24 11:25:40 +02:00
1 parent 3e80e40223
commit ea2f291025
1 file changed
+1 -2
+1 -2
View File
@@ -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){