mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-25 06:35:54 -05:00
Fixed MeshCtrl.js when username or password is all numbers. #2499
This commit is contained in:
parent
927d1e246d
commit
9a71a2b83a
@ -1018,7 +1018,7 @@ function serverConnect() {
|
||||
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 }
|
||||
options.headers = { 'x-meshauth': Buffer.from('' + username).toString('base64') + ',' + Buffer.from('' + args.loginpass).toString('base64') + token }
|
||||
}
|
||||
|
||||
// Cookie authentication
|
||||
|
Loading…
Reference in New Issue
Block a user