Skip to content

Commit

Permalink
refactor(routes/login): remove unused rendering of HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
pano9000 committed Jan 12, 2025
1 parent 59ecc61 commit d1bd2d2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/routes/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit d1bd2d2

Please sign in to comment.