mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
fix duo 2fa redirect when session changes
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
9a27d7637c
commit
c6da201af8
1 changed files with 4 additions and 1 deletions
|
@ -7092,7 +7092,10 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
|
|||
});
|
||||
} else {
|
||||
// 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…
Add table
Add a link
Reference in a new issue