mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-11-22 22:17:31 +03:00
Added loginkey to agent invitation url, #3978
This commit is contained in:
parent
d6ad242ef4
commit
5ff11d0e2b
@ -13105,10 +13105,10 @@
|
||||
var url;
|
||||
if (serverinfo.https == true) {
|
||||
var portStr = (serverinfo.port == 443) ? '' : (':' + serverinfo.port);
|
||||
url = 'https://' + servername + portStr + domainUrl + 'invite';
|
||||
url = 'https://' + servername + portStr + domainUrl + 'invite' + ((urlargs.key)?('?key=' + urlargs.key):'');
|
||||
} else {
|
||||
var portStr = (serverinfo.port == 80) ? '' : (':' + serverinfo.port);
|
||||
url = 'http://' + servername + portStr + domainUrl + 'invite';
|
||||
url = 'http://' + servername + portStr + domainUrl + 'invite' + ((urlargs.key)?('?key=' + urlargs.key):'');
|
||||
}
|
||||
|
||||
if (meshrights & 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user