Duo UI improvements.
Ylian Saint-Hilaire committed
Dec 31, 2024 at 11:40 UTC
5d0b5acdfb9e2ea19487556345bc3bfc9ff0744d
2 files changed
+7
-2
public/images/duo-2fa-250.png
Binary files /dev/null and b/public/images/duo-2fa-250.png differ
views/default.handlebars
+7
-2
@@ -12890,14 +12890,19 @@
12890
if (duoU2Fenabled == false) {
12891
setDialogMode(2, "Duo Authentication", 3, function () {
12892
window.location.href = '/add-duo?rurl=' + encodeURIComponentEx(window.location.href) + ((urlargs.key)?('&key=' + urlargs.key):'');
12893
- }, "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.");
12893
+ }, "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>');
12894
} else {
12895
setDialogMode(2, "Duo Authentication", 3, function () {
12896
meshserver.send({ action: 'otpduo', enabled: false });
12897
- }, "Confirm disabling Duo security.");
12897
+ }, '<p><label><input id=duo2facheck type=checkbox onclick=account_manageAuthDuoConfirm() />' + "Confirm disabling 2FA Duo login security." + '</label></p>');
12898
+ QE('idx_dlgOkButton', false);
12899
}
12900
}
12901
12902
+ function account_manageAuthDuoConfirm() {
12903
+ QE('idx_dlgOkButton', Q('duo2facheck').checked);
12904
+ }
12905
+
12906
function account_manageAuthApp() {
12907
if (xxdialogMode || ((features & 4096) == 0)) return;
12908
if (userinfo.otpsecret == 1) { account_removeOtp(); } else { account_addOtp(); }