From d1bd2d2812ae907979084ae87d0be61c52e5d83e Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sun, 12 Jan 2025 13:13:59 +0100 Subject: [PATCH] refactor(routes/login): remove unused rendering of HTML --- src/routes/login.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/login.ts b/src/routes/login.ts index cbb746c30..7b804896e 100644 --- a/src/routes/login.ts +++ b/src/routes/login.ts @@ -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); }); }