1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

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:
JSuenram 2022-02-15 12:45:25 +01:00
parent 6500149ad0
commit 4c0123d458
3 changed files with 8 additions and 2 deletions

View file

@ -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))