diff --git a/agents/meshcore.js b/agents/meshcore.js index b7ee766a..a83583a4 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -1076,6 +1076,8 @@ function handleServerCommand(data) { break; } case 'messagebox': { + sendConsoleText(JSON.stringify(data)); + // Display a message box if (data.title && data.msg) { @@ -1095,6 +1097,7 @@ function handleServerCommand(data) { ipr.title = data.title; ipr.message = data.msg; ipr.username = data.username; + if (data.realname && (data.realname != '')) { ipr.username = data.realname; } global._clientmessage = ipr.then(function (img) { this.messagebox = require('win-dialog').create(this.title, this.message, this.username, { timeout: 120000, b64Image: img.split(',').pop(), background: color_options.background, foreground: color_options.foreground }); diff --git a/meshcentral-config-schema.json b/meshcentral-config-schema.json index 0a1a11e1..a556e4e5 100644 --- a/meshcentral-config-schema.json +++ b/meshcentral-config-schema.json @@ -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." }, diff --git a/public/images/winagent.png b/public/images/winagent.png index 6c93073b..e68ca1f1 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 13715654..7a3adaf0 100644 --- a/views/agentinvite.handlebars +++ b/views/agentinvite.handlebars @@ -92,7 +92,7 @@
Download the software here, run it and press "Install" or "Connect".
Download the software here, run it and press "Install" or "Connect".