mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 18:32:41 +00:00
change to 401
This commit is contained in:
@@ -32,7 +32,7 @@ const mw = {
|
||||
if (process.env.ADMIN_USER === username && process.env.ADMIN_PASS === password) {
|
||||
return next();
|
||||
}
|
||||
throw { HBErrorCode: '403', code: 403, message: 'Access denied' };
|
||||
throw { HBErrorCode: '403', code: 401, message: 'Access denied' };
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user