Skip to content

Commit

Permalink
Resolve #277
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaisslaying committed Mar 20, 2024
1 parent 6dda676 commit ba20e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routes/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ router.get(
);

router.get("/logout", async (req, res, next) => {
if (!req.user.impersonator) {
if (req.user && !req.user.impersonator) {
req.session.logoutJust = true;
if (req.user.db.rank.admin) await tokenManager.tokenReset(req.user.id);

Expand Down

0 comments on commit ba20e8e

Please sign in to comment.