mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix login/logout redirects when not in the document root
This commit is contained in:
parent
ae8f4ffbbe
commit
27f74489fd
@ -24,7 +24,7 @@ async function login(req, res) {
|
||||
}
|
||||
|
||||
req.session.loggedIn = true;
|
||||
res.redirect('/');
|
||||
res.redirect('..');
|
||||
});
|
||||
}
|
||||
else {
|
||||
@ -44,7 +44,7 @@ function logout(req, res) {
|
||||
req.session.regenerate(() => {
|
||||
req.session.loggedIn = false;
|
||||
|
||||
res.redirect('/');
|
||||
res.redirect('login');
|
||||
});
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user