Fix for #2606

Ylian Saint-Hilaire committed May 8, 2021 at 19:42 UTC c1635ef8a2969853c1e517f7c2f1c2ccd8c9e79f
1 file changed -1
webserver.js
-1
@@ -957,7 +957,6 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
957 function handleRootRedirect(req, res, direct) {
958 const domain = checkUserIpAddress(req, res);
959 if (domain == null) { return; }
960 - if ((domain.loginkey != null) && (domain.loginkey.indexOf(req.query.key) == -1)) { res.sendStatus(404); return; } // Check 3FA URL key
960 res.redirect(domain.rootredirect + getQueryPortion(req));
961 }
962