From 258b96757f2d30f68ce873be04b5169de1e1eb9b Mon Sep 17 00:00:00 2001 From: TheArcaneBrony Date: Sat, 17 Sep 2022 23:35:31 +0200 Subject: Cryptographically secure invites, add generation of tokens --- src/api/middlewares/Authentication.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/middlewares/Authentication.ts') diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts index fbf71cd5..00c2e5e6 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts @@ -53,7 +53,7 @@ export async function Authentication(req: Request, res: Response, next: NextFunc }) ) return next(); - if (!req.headers.authorization) return next(new HTTPError(req.t("auth:generic.MISSING_AUTH_HEADER"), 401)); + if (!req.headers.authorization) return next(new HTTPError("Missing authorization header!", 401)); try { const { jwtSecret } = Config.get().security; -- cgit 1.5.1