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:
@@ -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.*
|
||||
|
||||
@@ -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' };
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user