From 5ff11d0e2baa89d8f6e05aca4c04ec8efe4e90bd Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Mon, 16 May 2022 17:18:23 -0700 Subject: [PATCH] Added loginkey to agent invitation url, #3978 --- views/default.handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/default.handlebars b/views/default.handlebars index 7309c495..91644a73 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -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) {