Skip to content

Commit

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

0 comments on commit 2a274fe

Please sign in to comment.