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

delete unused error

This commit is contained in:
Víctor Losada Hernández
2024-09-17 19:58:49 +02:00
parent bbe4b5f978
commit f024bea493
2 changed files with 1 additions and 8 deletions

View File

@@ -177,13 +177,6 @@ const errorIndex = (props)=>{
// ####### Admin pages errors #######
'52': dedent`
## Authorization Required
You need to provide correct administrator credentials to access this page.
:
If you should have access but are not able to log-in, please reach out via
[reddit mod mail](https://old.reddit.com/message/compose/?to=/r/homebrewery) or in the [hb_issues channel of the Discord of Many Things server](https://discord.gg/domt).`,
'53': dedent`
## Access Denied
You need to provide correct administrator credentials to access this page. *Too many unsuccessful
attempts will lock you out for a period of time.*

View File

@@ -32,7 +32,7 @@ const mw = {
if(process.env.ADMIN_USER === username && process.env.ADMIN_PASS === password) {
return next();
}
throw { HBErrorCode: '53', code: 401, message: 'Access denied' };
throw { HBErrorCode: '52', code: 401, message: 'Access denied' };
}
]
};