mirror of
				https://github.com/Ylianst/MeshCentral.git
				synced 2025-03-09 15:40:18 +00:00 
			
		
		
		
	Fixed server exception when remembering SFTP credentials, #4080
This commit is contained in:
		
							parent
							
								
									45dc8bf99b
								
							
						
					
					
						commit
						a3dc3d7b5d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1153,7 +1153,7 @@ module.exports.CreateSshFilesRelay = function (parent, db, ws, req, domain, user
 | 
			
		|||
        parent.parent.db.Get(obj.nodeid, function (err, nodes) {
 | 
			
		||||
            if ((err != null) || (nodes == null) || (nodes.length != 1)) return;
 | 
			
		||||
            const node = nodes[0];
 | 
			
		||||
            if (node.rdp == null) { node.rdp = {}; }
 | 
			
		||||
            if (node.ssh == null) { node.ssh = {}; }
 | 
			
		||||
 | 
			
		||||
            // Check if credentials are the same
 | 
			
		||||
            //if ((typeof node.ssh[obj.userid] == 'object') && (node.ssh[obj.userid].u == obj.username) && (node.ssh[obj.userid].p == obj.password)) return; // TODO
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue