mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-11 23:13:21 -05:00
More Duo UI improvements.
This commit is contained in:
parent
5d0b5acdfb
commit
2a274fe569
BIN
public/images/duo-2fa-250-disable.png
Normal file
BIN
public/images/duo-2fa-250-disable.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 15 KiB |
@ -12894,7 +12894,7 @@
|
||||
} else {
|
||||
setDialogMode(2, "Duo Authentication", 3, function () {
|
||||
meshserver.send({ action: 'otpduo', enabled: false });
|
||||
}, '<p><label><input id=duo2facheck type=checkbox onclick=account_manageAuthDuoConfirm() />' + "Confirm disabling 2FA Duo login security." + '</label></p>');
|
||||
}, '<p><label><input id=duo2facheck type=checkbox onclick=account_manageAuthDuoConfirm() />' + "Confirm disabling 2FA Duo login security." + '</label></p>' + '<p style="text-align: center"><img src="images/duo-2fa-250-disable.png"></p>');
|
||||
QE('idx_dlgOkButton', false);
|
||||
}
|
||||
}
|
||||
|
@ -7078,7 +7078,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
||||
sec.duostate = client.generateState();
|
||||
sec.duoconfig = 1;
|
||||
req.session.e = parent.encryptSessionData(sec);
|
||||
parent.debug('web', 'Redirecting user ' + req.session.userid + ' to Duo');
|
||||
parent.debug('web', 'Redirecting user ' + req.session.userid + ' to Duo for configuration');
|
||||
res.redirect(client.createAuthUrl(req.session.userid.split('/')[2], sec.duostate));
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user