Agent invite image fixes.

This commit is contained in:
Ylian Saint-Hilaire 2022-02-15 10:49:52 -08:00
parent 611af0a2b1
commit 196eccf330
4 changed files with 2 additions and 8 deletions

View File

@ -302,7 +302,6 @@
"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." },
"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" },
"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." },

Binary file not shown.

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 67 KiB

View File

@ -92,7 +92,7 @@
<h3>Microsoft&trade; Windows 64bit</h3>
<p><a id="win64url">Download the software here</a>, run it and press "Install" or "Connect".</p>
<div style="text-align:center">
<img id="agentInviteImagePreview64" class="winagent-img" src="{{{agentInviteImagePreview}}}" />
<img class="winagent-img" src="images/winagent.png" />
</div>
</div>
@ -100,7 +100,7 @@
<h3>Microsoft&trade; Windows 32bit</h3>
<p><a id="win32url">Download the software here</a>, run it and press "Install" or "Connect".</p>
<div style="text-align:center">
<img id="agentInviteImagePreview32" class="winagent-img" src="{{{agentInviteImagePreview}}}" />
<img class="winagent-img" src="images/winagent.png" />
</div>
</div>

View File

@ -7504,11 +7504,6 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
xargs.min = minify ? '-min' : '';
xargs.titlehtml = domain.titlehtml;
xargs.title = (domain.title != null) ? domain.title : 'MeshCentral';
if (domain.agentinviteimagepreview == null) {
xargs.agentInviteImagePreview = 'images/winagent.png';
} else {
xargs.agentInviteImagePreview = domain.agentinviteimagepreview;
}
if (
((page == 'login2') && (domain.loginpicture == null) && (domain.titlehtml == null)) ||
((page != 'login2') && (domain.titlepicture == null) && (domain.titlehtml == null))