apply assistantTypeAgentInvite to email invites too #6970
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Apr 14, 2025 at 11:42 UTC
b0b0f0c23a7d5c1bbed77a23399063f3582bb545
3 files changed
+3
-3
emails/mesh-invite.html
+1
-1
@@ -34,7 +34,7 @@
34
</area-linux>
35
<area-assistant>
36
<p style="margin-left:30px">
37
- <a href="[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]">Click here to download the MeshCentral Assistant for Windows.</a>
37
+ <a href="[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&ac=[[[ASSISTANTTYPE]]]">Click here to download the MeshCentral Assistant for Windows.</a>
38
</p>
39
</area-assistant>
40
<area-link>
emails/mesh-invite.txt
+1
-1
@@ -29,7 +29,7 @@ For Linux, cut & paste the following in a terminal to install the agent:
29
~<area-assistant>
30
For MeshCentral Assistant on Windows, nagivate to the following link to complete the process:
31
~
32
-~[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]
32
+~[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&ac=[[[ASSISTANTTYPE]]]
33
~
34
~</area-assistant>
35
~<area-link>
meshmail.js
+1
-1
@@ -346,7 +346,7 @@ module.exports.CreateMeshMail = function (parent, domain) {
346
}
347
348
// Set all the template replacement options and generate the final email text (both in txt and html formats).
349
- var options = { username: username, name: name, email: email, installflags: flags, msg: msg, meshid: meshid, meshidhex: meshid.split('/')[2], servername: domain.title ? domain.title : 'MeshCentral' };
349
+ var options = { username: username, name: name, email: email, installflags: flags, msg: msg, meshid: meshid, meshidhex: meshid.split('/')[2], servername: domain.title ? domain.title : 'MeshCentral', assistanttype: (domain.assistanttypeagentinvite ? domain.assistanttypeagentinvite : 0)};
350
if (loginkey != null) { options.urlargs1 = '?key=' + loginkey; options.urlargs2 = '&key=' + loginkey; } else { options.urlargs1 = ''; options.urlargs2 = ''; }
351
options.windows = ((os == 0) || (os == 1)) ? 1 : 0;
352
options.linux = ((os == 0) || (os == 2)) ? 1 : 0;