From f024bea493600b1ad1b32b9d3a9609002b6cedde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Losada=20Hern=C3=A1ndez?= Date: Tue, 17 Sep 2024 19:58:49 +0200 Subject: [PATCH] delete unused error --- client/homebrew/pages/errorPage/errors/errorIndex.js | 7 ------- server/admin.api.js | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) 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' }; } ] };