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

Fixed MeshCentral Router login token and remote desktop aspect ratio mode bug.

This commit is contained in:
Ylian Saint-Hilaire 2019-04-27 11:53:06 -07:00
parent 8a45dd185d
commit be93a87e72
5 changed files with 19 additions and 15 deletions

View file

@ -290,8 +290,10 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
}
case 'logincookie':
{
// Return a login cookie
try { ws.send(JSON.stringify({ action: 'logincookie', cookie: parent.parent.encodeCookie({ u: user._id, a: 3 }, parent.parent.loginCookieEncryptionKey) })); } catch (ex) { }
// If allowed, return a login cookie
if (parent.parent.config.settings.allowlogintoken === true) {
try { ws.send(JSON.stringify({ action: 'logincookie', cookie: parent.parent.encodeCookie({ u: user._id, a: 3 }, parent.parent.loginCookieEncryptionKey) })); } catch (ex) { }
}
break;
}
case 'servertimelinestats':