From 21504d1417e9da423fcf4cbce9de996788aa0f20 Mon Sep 17 00:00:00 2001 From: hulmgulm <12165268+hulmgulm@users.noreply.github.com> Date: Mon, 25 Aug 2025 21:18:01 +0200 Subject: [PATCH] Logout same error message on api 401 as on login error --- apps/server/src/services/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/server/src/services/auth.ts b/apps/server/src/services/auth.ts index df18fba49..8b56f1e5f 100644 --- a/apps/server/src/services/auth.ts +++ b/apps/server/src/services/auth.ts @@ -159,6 +159,7 @@ function checkCredentials(req: Request, res: Response, next: NextFunction) { if (!passwordEncryptionService.verifyPassword(password)) { res.setHeader("Content-Type", "text/plain").status(401).send("Incorrect password"); + log.info(`WARNING: Wrong password from ${req.ip}, rejecting.`); } else { next(); }