mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 19:11:51 +00:00
Fix for #2606
This commit is contained in:
parent
33364c4f4c
commit
c1635ef8a2
1 changed files with 0 additions and 1 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue