mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
refactor(routes/login): remove unused rendering of HTML
This commit is contained in:
parent
59ecc614c2
commit
d1bd2d2812
@ -94,8 +94,7 @@ function verifyPassword(guessedPassword: string) {
|
||||
function logout(req: Request, res: Response) {
|
||||
req.session.regenerate(() => {
|
||||
req.session.loggedIn = false;
|
||||
|
||||
res.redirect("login");
|
||||
res.sendStatus(200);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user