diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index 532ee2c8..0a1a11e1 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -302,6 +302,7 @@ "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." }, @@ -588,7 +589,7 @@ "description": "Indicate what string the agent must write to the shell after starting a terminal session", "linux": { "type": "string", "default": " alias ls=\\'ls --color=auto\\';clear\\n", "description": "String to write after opening a Linux terminal." }, "darwin": { "type": "string", "default": null, "description": "String to write after opening a macOS terminal." }, - "freebsd": { "type": "string", "default": null, "description": "String to write after opening a FreeBSD terminal." }, + "freebsd": { "type": "string", "default": null, "description": "String to write after opening a FreeBSD terminal." } } } }, diff --git a/public/images/winagent.png b/public/images/winagent.png index a5bcbad0..6c93073b 100644 Binary files a/public/images/winagent.png and b/public/images/winagent.png differ diff --git a/views/agentinvite.handlebars b/views/agentinvite.handlebars index 7a3adaf0..13715654 100644 --- a/views/agentinvite.handlebars +++ b/views/agentinvite.handlebars @@ -92,7 +92,7 @@

Microsoft™ Windows 64bit

Download the software here, run it and press "Install" or "Connect".

- +
@@ -100,7 +100,7 @@

Microsoft™ Windows 32bit

Download the software here, run it and press "Install" or "Connect".

- +
diff --git a/webserver.js b/webserver.js index fec5da0a..77e40f0f 100644 --- a/webserver.js +++ b/webserver.js @@ -7504,6 +7504,11 @@ 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))