1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-02-12 19:11:51 +00:00
This commit is contained in:
Ylian Saint-Hilaire 2021-05-08 19:42:18 -07:00
parent 33364c4f4c
commit c1635ef8a2

View file

@ -957,7 +957,6 @@ module.exports.CreateWebServer = function (parent, db, args, certificates) {
function handleRootRedirect(req, res, direct) { function handleRootRedirect(req, res, direct) {
const domain = checkUserIpAddress(req, res); const domain = checkUserIpAddress(req, res);
if (domain == null) { return; } 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)); res.redirect(domain.rootredirect + getQueryPortion(req));
} }