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

New MeshAgents, MeshCtrl fix

This commit is contained in:
Ylian Saint-Hilaire 2019-09-20 15:20:59 -07:00
parent f1408feafb
commit 5375cab3df
28 changed files with 14 additions and 14 deletions

View file

@ -282,7 +282,7 @@ function serverConnect() {
// Password authentication
if (args.loginpass != null) {
var username = 'admin';
if (args.user != null) { username = args.user; }
if (args.loginuser != null) { username = args.loginuser; }
var token = '';
if (args.token != null) { token = ',' + Buffer.from('' + args.token).toString('base64'); }
options.headers = { 'x-meshauth': Buffer.from(username).toString('base64') + ',' + Buffer.from(args.loginpass).toString('base64') + token }