mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Added loginkey to agent invitation url, #3978
This commit is contained in:
parent
d6ad242ef4
commit
5ff11d0e2b
@ -13105,10 +13105,10 @@
|
|||||||
var url;
|
var url;
|
||||||
if (serverinfo.https == true) {
|
if (serverinfo.https == true) {
|
||||||
var portStr = (serverinfo.port == 443) ? '' : (':' + serverinfo.port);
|
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 {
|
} else {
|
||||||
var portStr = (serverinfo.port == 80) ? '' : (':' + serverinfo.port);
|
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) {
|
if (meshrights & 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user