0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 20:42:43 +00:00

I'm dumb.

This commit is contained in:
Trevor Buckner
2024-08-28 16:59:22 -04:00
committed by GitHub
parent 5323e6ca7a
commit a124bd8657

View File

@@ -358,6 +358,9 @@ app.get('/share/:id', asyncHandler(getBrew('share')), asyncHandler(async (req, r
//Account Page
app.get('/account', asyncHandler(async (req, res, next)=>{
const data = {};
data.title = 'Account Information Page';
if(!req.account) {
res.set('WWW-Authenticate', 'Bearer realm="Authorization Required"');
const error = new Error('No valid account');
@@ -366,9 +369,6 @@ app.get('/account', asyncHandler(async (req, res, next)=>{
error.page = data.title;
return next(error);
};
const data = {};
data.title = 'Account Information Page';
let auth;
let googleCount = [];