0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 16:22:44 +00:00

handle invalid account in account page, redirect to home

This commit is contained in:
Víctor Losada Hernández
2024-08-28 20:42:53 +02:00
parent a016bfd133
commit c9947d7f91

View File

@@ -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';