diff --git a/server/app.js b/server/app.js index 9afc9f270..cc407a20a 100644 --- a/server/app.js +++ b/server/app.js @@ -358,6 +358,7 @@ app.get('/share/:id', asyncHandler(getBrew('share')), asyncHandler(async (req, r //Account Page app.get('/account', asyncHandler(async (req, res, next)=>{ + if(!req.account) return res.redirect('/'); const data = {}; data.title = 'Account Information Page';