mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 14:45:52 -05:00
Fixed server exception when remembering SFTP credentials, #4080
This commit is contained in:
parent
45dc8bf99b
commit
a3dc3d7b5d
@ -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…
Reference in New Issue
Block a user