Skip to content

Commit

Permalink
Duo UI improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylianst committed Dec 31, 2024
1 parent f80ba62 commit 5d0b5ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Binary file added public/images/duo-2fa-250.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 7 additions & 2 deletions views/default.handlebars
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down

0 comments on commit 5d0b5ac

Please sign in to comment.