From defd4148065863bf4e812adfabb6c1f97978c4ff Mon Sep 17 00:00:00 2001 From: Alessandre Laguierce Date: Sat, 26 Oct 2024 15:50:54 +0200 Subject: [PATCH] fix: better error code --- back-end/src/controllers/auth.controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back-end/src/controllers/auth.controller.ts b/back-end/src/controllers/auth.controller.ts index e6544c6..267761d 100644 --- a/back-end/src/controllers/auth.controller.ts +++ b/back-end/src/controllers/auth.controller.ts @@ -91,7 +91,7 @@ const login = async (req: Request, res: Response) => { return; } if (!r) { - res.status(403).send(); + res.status(401).send(); return; } res.status(200).send();