mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
721c909158
commit
ee0018e4d1
File diff suppressed because it is too large
Load Diff
@ -2261,7 +2261,11 @@
|
||||
if (idtype == 'mesh') { gotoMesh(id); }
|
||||
if (idtype == 'account') { go(3); }
|
||||
if (idtype == 'devices') { go(2); }
|
||||
if (idtype == 'files') { go(5); }
|
||||
if (idtype == 'files') {
|
||||
// Remind the user to add two factor authentication
|
||||
if ((features & 0x00040000) && !((userinfo.otpsecret == 1) || (userinfo.otphkeys > 0) || (userinfo.otpkeys > 0) || ((features & 0x00800000) && (userinfo.otpekey == 1)))) { setDialogMode(2, "Account Security", 1, null, "Unable to access this feature until two-factor authentication is enabled. This is required for extra security. Go to the \"My Account\" and look at the \"Account Security\" section."); return; }
|
||||
go(5);
|
||||
}
|
||||
}
|
||||
|
||||
function updateFooterMenu(options) {
|
||||
@ -2635,6 +2639,8 @@
|
||||
}
|
||||
|
||||
function gotoMesh(meshid) {
|
||||
// Remind the user to add two factor authentication
|
||||
if ((features & 0x00040000) && !((userinfo.otpsecret == 1) || (userinfo.otphkeys > 0) || (userinfo.otpkeys > 0) || ((features & 0x00800000) && (userinfo.otpekey == 1)))) { setDialogMode(2, "Account Security", 1, null, "Unable to access this feature until two-factor authentication is enabled. This is required for extra security. Go to the \"My Account\" and look at the \"Account Security\" section."); return; }
|
||||
currentMesh = meshes[meshid];
|
||||
if (currentMesh == null) { goBack(); }
|
||||
p20updateMesh();
|
||||
|
@ -5797,6 +5797,9 @@
|
||||
function groupActionFunction() {
|
||||
var addedOptions = [], nodeids = getCheckedDevices(), added = 0;
|
||||
|
||||
// Remind the user to add two factor authentication
|
||||
if ((features & 0x00040000) && (count2factoraAuths() == 0)) { setDialogMode(2, "Account Security", 1, null, "Unable to access this feature until two-factor authentication is enabled. This is required for extra security. Go to the \"My Account\" tab and look at the \"Account Security\" section."); return; }
|
||||
|
||||
// Check if any of the selected devices have a MQTT connection active
|
||||
if (features & 0x00400000) {
|
||||
for (var i in nodeids) { if ((getNodeFromId(nodeids[i]).conn & 16) != 0) { addedOptions.push({ v:103, name: "Send MQTT Message" });; break; } }
|
||||
|
Loading…
Reference in New Issue
Block a user