mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-06 08:40:06 -05:00
fix duo 2fa redirect when session changes
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
9a27d7637c
commit
c6da201af8
@ -7092,7 +7092,10 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
// Login failed
|
// Login failed
|
||||||
handleRootRequestEx(req, res, domain, direct);
|
parent.debug('web', 'handleRootRequest: login authorization failed when returning from Duo 2FA.');
|
||||||
|
req.session.loginmode = 1;
|
||||||
|
res.redirect(domain.url + getQueryPortion(req)); // redirect back to main page
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user