diff --git a/client/homebrew/pages/errorPage/errors/errorIndex.js b/client/homebrew/pages/errorPage/errors/errorIndex.js index 457172c5d..0272fed4d 100644 --- a/client/homebrew/pages/errorPage/errors/errorIndex.js +++ b/client/homebrew/pages/errorPage/errors/errorIndex.js @@ -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.* diff --git a/server/admin.api.js b/server/admin.api.js index f16f7fe2a..30ed47369 100644 --- a/server/admin.api.js +++ b/server/admin.api.js @@ -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' }; } ] };