diff --git a/server/routes/auth.ts b/server/routes/auth.ts index 09c013b72..402a4efc1 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -287,7 +287,7 @@ authRoutes.post('/local', async (req, res, next) => { } // Set logged in session - if (user && req.session) { + if (req.session) { req.session.userId = user.id; }