Fixing realname in notification for terminal sessions (#5928)
silversword411 committed
Mar 14, 2024 at 10:51 UTC
4027ee1b282fb3fd642cbce7f7cbfd6977d24a6c
2 files changed
+2
-2
agents/meshcore.js
+1
-1
@@ -2391,7 +2391,7 @@ function terminal_promise_connection_resolved(term)
2391
if (this.ws.httprequest.consent && (this.ws.httprequest.consent & 2))
2392
{
2393
// User Notifications is required
2394
- var notifyMessage = currentTranslation['terminalNotify'].replace('{0}', this.ws.httprequest.username);
2394
+ var notifyMessage = currentTranslation['terminalNotify'].replace('{0}', this.ws.httprequest.realname ? this.ws.httprequest.realname : this.ws.httprequest.username);
2395
var notifyTitle = "MeshCentral";
2396
if (this.ws.httprequest.soptions != null)
2397
{
meshuser.js
+1
-1
@@ -84,7 +84,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
84
const PROTOCOL_WEBVNC = 204;
85
86
// MeshCentral Satellite
87
- const SATELLITE_PRESENT = 1; // This session is a MeshCentral Salellite session
87
+ const SATELLITE_PRESENT = 1; // This session is a MeshCentral Satellite session
88
const SATELLITE_802_1x = 2; // This session supports 802.1x profile checking and creation
89
90
// Events