More Duo UI improvements.

This commit is contained in:
Ylian Saint-Hilaire 2024-12-31 11:48:30 -08:00
parent 5d0b5acdfb
commit 2a274fe569
3 changed files with 2 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -12894,7 +12894,7 @@
} else { } else {
setDialogMode(2, "Duo Authentication", 3, function () { setDialogMode(2, "Duo Authentication", 3, function () {
meshserver.send({ action: 'otpduo', enabled: false }); 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); QE('idx_dlgOkButton', false);
} }
} }

View File

@ -7078,7 +7078,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
sec.duostate = client.generateState(); sec.duostate = client.generateState();
sec.duoconfig = 1; sec.duoconfig = 1;
req.session.e = parent.encryptSessionData(sec); 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)); res.redirect(client.createAuthUrl(req.session.userid.split('/')[2], sec.duostate));
} }
}); });