Fixing realname in notification for terminal sessions (#5928)

This commit is contained in:
silversword411 2024-03-14 10:51:33 -04:00 committed by GitHub
parent 4f11d7fdbc
commit 4027ee1b28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -2391,7 +2391,7 @@ function terminal_promise_connection_resolved(term)
if (this.ws.httprequest.consent && (this.ws.httprequest.consent & 2)) if (this.ws.httprequest.consent && (this.ws.httprequest.consent & 2))
{ {
// User Notifications is required // User Notifications is required
var notifyMessage = currentTranslation['terminalNotify'].replace('{0}', this.ws.httprequest.username); var notifyMessage = currentTranslation['terminalNotify'].replace('{0}', this.ws.httprequest.realname ? this.ws.httprequest.realname : this.ws.httprequest.username);
var notifyTitle = "MeshCentral"; var notifyTitle = "MeshCentral";
if (this.ws.httprequest.soptions != null) if (this.ws.httprequest.soptions != null)
{ {

View File

@ -84,7 +84,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
const PROTOCOL_WEBVNC = 204; const PROTOCOL_WEBVNC = 204;
// MeshCentral Satellite // MeshCentral Satellite
const SATELLITE_PRESENT = 1; // This session is a MeshCentral Salellite session const SATELLITE_PRESENT = 1; // This session is a MeshCentral Satellite session
const SATELLITE_802_1x = 2; // This session supports 802.1x profile checking and creation const SATELLITE_802_1x = 2; // This session supports 802.1x profile checking and creation
// Events // Events