mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +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
|
if(x.instanceID
|
||||||
&& x.instanceName
|
&& 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)
|
&& !isNaN(Number(x.count))
|
||||||
/*&& stringUtils.hashCode(slaves[x.unique].rconPassword) == x.unique*/
|
|
||||||
&& x.name
|
&& x.name
|
||||||
&& typeof x.name == "string"){
|
&& typeof x.name == "string"){
|
||||||
if(config.logItemTransfers){
|
if(config.logItemTransfers){
|
||||||
|
|||||||
Reference in new issue
Block a user