This commit is contained in:
Ylian Saint-Hilaire 2021-05-08 19:42:18 -07:00
parent 33364c4f4c
commit c1635ef8a2
1 changed files with 0 additions and 1 deletions

View File

@ -957,7 +957,6 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
function handleRootRedirect(req, res, direct) {
const domain = checkUserIpAddress(req, res);
if (domain == null) { return; }
if ((domain.loginkey != null) && (domain.loginkey.indexOf(req.query.key) == -1)) { res.sendStatus(404); return; } // Check 3FA URL key
res.redirect(domain.rootredirect + getQueryPortion(req));
}