mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Improved MeshCMD server authentication.
This commit is contained in:
		
							parent
							
								
									eb9b9d7e53
								
							
						
					
					
						commit
						b9b2aa55ba
					
				
					 7 changed files with 28 additions and 7 deletions
				
			
		|  | @ -5146,7 +5146,9 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use | |||
|                     // Get the node and the rights for this node
 | ||||
|                     parent.GetNodeWithRights(domain, user, command.nodeids[i], function (node, rights, visible) { | ||||
|                         // If this device is connected on MQTT, send a wake action.
 | ||||
|                         if (rights != 0) { parent.parent.mqttbroker.publish(node._id, command.topic, command.msg); } | ||||
|                         if (rights != 0) { | ||||
|                             parent.parent.mqttbroker.publish(node._id, command.topic, command.msg); | ||||
|                         } | ||||
|                     }); | ||||
|                 } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue