0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 03:52:40 +00:00

change to 401

This commit is contained in:
Víctor Losada Hernández
2024-09-12 14:04:35 +02:00
parent 4680e7a5cc
commit f40c5e17ca
2 changed files with 5 additions and 9 deletions

View File

@@ -154,17 +154,13 @@ const errorIndex = (props)=>{
'401': dedent` '401': dedent`
## Authorization Required ## Authorization Required
You need to provide correct administrator credentials to access this page.
You need to provide correct credentials to access this page.
: :
This is an administrator only page to manage the site, if you should not have access, leave inmediately.
: 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
If you have received instructions to open this page, report in the [hb_issues channel of the Discord of Many Things server](https://discord.gg/domt).
as so at our subreddit or discord you will find in the home page.
`, `,
'403': dedent` '403': dedent`
## Access Denied ## Access Denied

View File

@@ -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: '403', code: 403, message: 'Access denied' }; throw { HBErrorCode: '403', code: 401, message: 'Access denied' };
} }
] ]
}; };