1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

control.ashx now behind 3FA

This commit is contained in:
Ylian Saint-Hilaire 2020-09-18 00:57:36 -07:00
parent 4602476ecd
commit 2313e64e3a
7 changed files with 13 additions and 7 deletions

View file

@ -22,7 +22,7 @@ var MeshServerCreateControl = function (domain, authCookie) {
obj.Start = function () {
if (obj.connectstate != 0) return;
obj.connectstate = 0;
var url = window.location.protocol.replace("http", "ws") + "//" + window.location.host + domain + "control.ashx";
var url = window.location.protocol.replace('http', 'ws') + '//' + window.location.host + domain + 'control.ashx' + (urlargs.key ? ('?key=' + urlargs.key) : '');
if (obj.authCookie && (obj.authCookie != '')) { url += '?auth=' + obj.authCookie; }
obj.socket = new WebSocket(url);
obj.socket.onopen = function (e) { obj.connectstate = 1; }