mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-04-26 13:02:20 -04:00
apply assistantTypeAgentInvite to email invites too #6970
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
c249282554
commit
b0b0f0c23a
@ -34,7 +34,7 @@
|
||||
</area-linux>
|
||||
<area-assistant>
|
||||
<p style="margin-left:30px">
|
||||
<a href="[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]">Click here to download the MeshCentral Assistant for Windows.</a>
|
||||
<a href="[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&ac=[[[ASSISTANTTYPE]]]">Click here to download the MeshCentral Assistant for Windows.</a>
|
||||
</p>
|
||||
</area-assistant>
|
||||
<area-link>
|
||||
|
@ -29,7 +29,7 @@ For Linux, cut & paste the following in a terminal to install the agent:
|
||||
~<area-assistant>
|
||||
For MeshCentral Assistant on Windows, nagivate to the following link to complete the process:
|
||||
~
|
||||
~[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]
|
||||
~[[[SERVERURL]]]/meshagents?id=10006&meshid=[[[MESHIDHEX]]]&tag=mailto:[[[EMAIL]]]&ac=[[[ASSISTANTTYPE]]]
|
||||
~
|
||||
~</area-assistant>
|
||||
~<area-link>
|
||||
|
@ -346,7 +346,7 @@ module.exports.CreateMeshMail = function (parent, domain) {
|
||||
}
|
||||
|
||||
// Set all the template replacement options and generate the final email text (both in txt and html formats).
|
||||
var options = { username: username, name: name, email: email, installflags: flags, msg: msg, meshid: meshid, meshidhex: meshid.split('/')[2], servername: domain.title ? domain.title : 'MeshCentral' };
|
||||
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)};
|
||||
if (loginkey != null) { options.urlargs1 = '?key=' + loginkey; options.urlargs2 = '&key=' + loginkey; } else { options.urlargs1 = ''; options.urlargs2 = ''; }
|
||||
options.windows = ((os == 0) || (os == 1)) ? 1 : 0;
|
||||
options.linux = ((os == 0) || (os == 2)) ? 1 : 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user