mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-24 06:05:53 -05:00
Fixed MeshCentral Router login token and remote desktop aspect ratio mode bug.
This commit is contained in:
parent
8a45dd185d
commit
be93a87e72
Binary file not shown.
@ -290,8 +290,10 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
||||
}
|
||||
case 'logincookie':
|
||||
{
|
||||
// Return a login cookie
|
||||
// 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':
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "meshcentral",
|
||||
"version": "0.3.3-c",
|
||||
"version": "0.3.3-d",
|
||||
"keywords": [
|
||||
"Remote Management",
|
||||
"Intel AMT",
|
||||
|
File diff suppressed because one or more lines are too long
@ -4566,7 +4566,7 @@
|
||||
fullscreen = !fullscreen;
|
||||
if (fullscreen) {
|
||||
QC('body').add("fulldesk");
|
||||
QS('deskarea3x').height = null;
|
||||
//QS('deskarea3x').height = null;
|
||||
// If shift is pressed, enter browser full screen.
|
||||
if (e.shiftKey == true) { enterBrowserFullscreen(Q('deskarea0')); browserfullscreen = true; }
|
||||
} else {
|
||||
@ -4591,9 +4591,10 @@
|
||||
|
||||
if (deskAspectRatio == 2) {
|
||||
// Scale mode
|
||||
QS('Desk').width = '100%';
|
||||
QS('Desk')['margin-top'] = null;
|
||||
QS('Desk').height = '100%';
|
||||
QS('deskarea3x').height = null;
|
||||
QS('Desk').width = '100%';
|
||||
//QS('deskarea3x').height = null;
|
||||
QS('DeskParent').overflow = 'hidden';
|
||||
} else if (deskAspectRatio == 1) {
|
||||
// Zoomed mode
|
||||
@ -4603,18 +4604,18 @@
|
||||
QS('DeskParent').overflow = 'scroll';
|
||||
} else {
|
||||
// Fixed aspect ratio
|
||||
if (parentH / parentW > deskH / deskW) {
|
||||
var hNew = (deskH * parentW / deskW) + 'px';
|
||||
if (webPageFullScreen || fullscreen) {
|
||||
QS('deskarea3x').height = null;
|
||||
} else {
|
||||
if ((parentH / parentW) > (deskH / deskW)) {
|
||||
var hNew = ((deskH * parentW) / deskW) + 'px';
|
||||
//if (webPageFullScreen || fullscreen) {
|
||||
//QS('deskarea3x').height = null;
|
||||
//} else {
|
||||
// QS('deskarea3x').height = hNew;
|
||||
QS('deskarea3x').height = null;
|
||||
}
|
||||
//QS('deskarea3x').height = null;
|
||||
//}
|
||||
QS('Desk').height = hNew;
|
||||
QS('Desk').width = '100%';
|
||||
} else {
|
||||
var wNew = (deskW * parentH / deskH) + 'px';
|
||||
var wNew = ((deskW * parentH) / deskH) + 'px';
|
||||
if (webPageFullScreen || fullscreen) {
|
||||
QS('Desk').height = null;
|
||||
} else {
|
||||
@ -4622,6 +4623,7 @@
|
||||
}
|
||||
QS('Desk').width = wNew;
|
||||
}
|
||||
QS('Desk')['margin-top'] = null;
|
||||
QS('DeskParent').overflow = 'hidden';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user