mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-12 07:23:21 -05:00
Duo UI improvements.
This commit is contained in:
parent
f80ba62cfc
commit
5d0b5acdfb
BIN
public/images/duo-2fa-250.png
Normal file
BIN
public/images/duo-2fa-250.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
@ -12890,14 +12890,19 @@
|
||||
if (duoU2Fenabled == false) {
|
||||
setDialogMode(2, "Duo Authentication", 3, function () {
|
||||
window.location.href = '/add-duo?rurl=' + encodeURIComponentEx(window.location.href) + ((urlargs.key)?('&key=' + urlargs.key):'');
|
||||
}, "Confirm enabling of Duo 2FA security. Once enabled you will be given the option to use Due security at login. Click ok to go thru the steps to enable Duo.");
|
||||
}, "Confirm enabling of Duo 2FA login security. Once enabled you will be given the option to use Duo at login for added security. Click ok to go thru the steps to enable Duo." + '<p style="text-align: center"><img src="images/duo-2fa-250.png"></p>');
|
||||
} else {
|
||||
setDialogMode(2, "Duo Authentication", 3, function () {
|
||||
meshserver.send({ action: 'otpduo', enabled: false });
|
||||
}, "Confirm disabling Duo security.");
|
||||
}, '<p><label><input id=duo2facheck type=checkbox onclick=account_manageAuthDuoConfirm() />' + "Confirm disabling 2FA Duo login security." + '</label></p>');
|
||||
QE('idx_dlgOkButton', false);
|
||||
}
|
||||
}
|
||||
|
||||
function account_manageAuthDuoConfirm() {
|
||||
QE('idx_dlgOkButton', Q('duo2facheck').checked);
|
||||
}
|
||||
|
||||
function account_manageAuthApp() {
|
||||
if (xxdialogMode || ((features & 4096) == 0)) return;
|
||||
if (userinfo.otpsecret == 1) { account_removeOtp(); } else { account_addOtp(); }
|
||||
|
Loading…
Reference in New Issue
Block a user