0
0
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:
Víctor Losada Hernández
2024-09-12 14:04:35 +02:00
parent 4680e7a5cc
commit f40c5e17ca
2 changed files with 5 additions and 9 deletions

View File

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