mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added user consent option on desktop connect button.
This commit is contained in:
parent
86a823b00a
commit
1f0450529c
3 changed files with 31 additions and 10 deletions
|
@ -795,7 +795,7 @@ function createMeshCore(agent) {
|
|||
if (process.platform != 'win32') break;
|
||||
var p = require('user-sessions').enumerateUsers();
|
||||
p.sessionid = data.sessionid;
|
||||
p.then(function (u) { mesh.SendCommand({ action: 'msg', type: 'userSessions', sessionid: data.sessionid, data: u }); });
|
||||
p.then(function (u) { mesh.SendCommand({ action: 'msg', type: 'userSessions', sessionid: data.sessionid, data: u, tag: data.tag }); });
|
||||
break;
|
||||
}
|
||||
default:
|
||||
|
@ -1804,6 +1804,10 @@ function createMeshCore(agent) {
|
|||
//sendConsoleText('options: ' + JSON.stringify(obj));
|
||||
delete obj.type;
|
||||
ws.httprequest.xoptions = obj;
|
||||
|
||||
// Set additional user consent options if present
|
||||
if ((obj != null) && (typeof obj.consent == 'number')) { ws.httprequest.consent += obj.consent; }
|
||||
|
||||
break;
|
||||
}
|
||||
case 'close': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue