mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-08 11:52:44 +00:00
delete unused error
This commit is contained in:
@@ -177,13 +177,6 @@ const errorIndex = (props)=>{
|
|||||||
// ####### Admin pages errors #######
|
// ####### Admin pages errors #######
|
||||||
|
|
||||||
'52': dedent`
|
'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
|
## Access Denied
|
||||||
You need to provide correct administrator credentials to access this page. *Too many unsuccessful
|
You need to provide correct administrator credentials to access this page. *Too many unsuccessful
|
||||||
attempts will lock you out for a period of time.*
|
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) {
|
if(process.env.ADMIN_USER === username && process.env.ADMIN_PASS === password) {
|
||||||
return next();
|
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