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:
parent
f1408feafb
commit
5375cab3df
28 changed files with 14 additions and 14 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue