mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-12 23:04:52 +09:00
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:
1 parent
3e80e40223
commit
ea2f291025
1 file changed
+1
-2
@@ -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){
|
||||
|
||||
Reference in new issue
Block a user