Added feature to set custom picture for AgentInvitePage for Windows Guests in config.json. In domain-section add to change picture. Else defailt will be used. "agentInviteImagePreview": "images/winagent.png",
This commit is contained in:
parent
6500149ad0
commit
4c0123d458
|
@ -302,6 +302,7 @@
|
||||||
"mobileSite": { "type": "boolean", "default": true, "description": "When set to false, this setting will disable the mobile site." },
|
"mobileSite": { "type": "boolean", "default": true, "description": "When set to false, this setting will disable the mobile site." },
|
||||||
"unknownUserRootRedirect": { "type": "string", "default": null, "description": "Redirects HTTP root requests to this URL only where user is not already logged in. When in use, direct users to /login to see the normal login page." },
|
"unknownUserRootRedirect": { "type": "string", "default": null, "description": "Redirects HTTP root requests to this URL only where user is not already logged in. When in use, direct users to /login to see the normal login page." },
|
||||||
"nightMode": { "type": "integer", "default": 0, "description": "0 = User selects day/night mode, 1 = Always night mode, 2 = Always day mode" },
|
"nightMode": { "type": "integer", "default": 0, "description": "0 = User selects day/night mode, 1 = Always night mode, 2 = Always day mode" },
|
||||||
|
"agentInviteImagePreview": { "type": "string", "default": "images/winagent.png", "description": "The filename of a image file in .png format located in Meshcentral-Data to display in the MeshCentral Agent invitation page, image should be 549x393 but can be larger." },
|
||||||
"userQuota": { "type": "integer" },
|
"userQuota": { "type": "integer" },
|
||||||
"meshQuota": { "type": "integer" },
|
"meshQuota": { "type": "integer" },
|
||||||
"loginKey": { "type": [ "string", "array" ], "items": { "type": "string" }, "default": null, "description": "Requires that users add the value ?key=xxx in the URL in order to see the web site." },
|
"loginKey": { "type": [ "string", "array" ], "items": { "type": "string" }, "default": null, "description": "Requires that users add the value ?key=xxx in the URL in order to see the web site." },
|
||||||
|
|
|
@ -92,7 +92,7 @@
|
||||||
<h3>Microsoft™ Windows 64bit</h3>
|
<h3>Microsoft™ Windows 64bit</h3>
|
||||||
<p><a id="win64url">Download the software here</a>, run it and press "Install" or "Connect".</p>
|
<p><a id="win64url">Download the software here</a>, run it and press "Install" or "Connect".</p>
|
||||||
<div style="text-align:center">
|
<div style="text-align:center">
|
||||||
<img class="winagent-img" src="images/winagent.png" />
|
<img id="agentInviteImagePreview64" class="winagent-img" src="{{{agentInviteImagePreview}}}" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -100,7 +100,7 @@
|
||||||
<h3>Microsoft™ Windows 32bit</h3>
|
<h3>Microsoft™ Windows 32bit</h3>
|
||||||
<p><a id="win32url">Download the software here</a>, run it and press "Install" or "Connect".</p>
|
<p><a id="win32url">Download the software here</a>, run it and press "Install" or "Connect".</p>
|
||||||
<div style="text-align:center">
|
<div style="text-align:center">
|
||||||
<img class="winagent-img" src="images/winagent.png" />
|
<img id="agentInviteImagePreview32" class="winagent-img" src="{{{agentInviteImagePreview}}}" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -7504,6 +7504,11 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||||
xargs.min = minify ? '-min' : '';
|
xargs.min = minify ? '-min' : '';
|
||||||
xargs.titlehtml = domain.titlehtml;
|
xargs.titlehtml = domain.titlehtml;
|
||||||
xargs.title = (domain.title != null) ? domain.title : 'MeshCentral';
|
xargs.title = (domain.title != null) ? domain.title : 'MeshCentral';
|
||||||
|
if (domain.agentinviteimagepreview == null) {
|
||||||
|
xargs.agentInviteImagePreview = 'images/winagent.png';
|
||||||
|
} else {
|
||||||
|
xargs.agentInviteImagePreview = domain.agentinviteimagepreview;
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
((page == 'login2') && (domain.loginpicture == null) && (domain.titlehtml == null)) ||
|
((page == 'login2') && (domain.loginpicture == null) && (domain.titlehtml == null)) ||
|
||||||
((page != 'login2') && (domain.titlepicture == null) && (domain.titlehtml == null))
|
((page != 'login2') && (domain.titlepicture == null) && (domain.titlehtml == null))
|
||||||
|
|
Loading…
Reference in New Issue