From 3e4bf1b9f6b07ea6fae0276bc3a41be66de8ce4d Mon Sep 17 00:00:00 2001 From: Ludovic Ortega Date: Mon, 20 Apr 2026 17:19:31 +0200 Subject: [PATCH] =?UTF-8?q?refactor(logs):=20align=20failed=20login=20atte?= =?UTF-8?q?mpt=20message=20with=20failed=20sign-i=E2=80=A6=20(#2914)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ludovic Ortega --- docs/extending-seerr/fail2ban.mdx | 2 +- server/routes/auth.ts | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/extending-seerr/fail2ban.mdx b/docs/extending-seerr/fail2ban.mdx index 86f846a8e..da2a8f75a 100644 --- a/docs/extending-seerr/fail2ban.mdx +++ b/docs/extending-seerr/fail2ban.mdx @@ -14,7 +14,7 @@ To use Fail2ban with Seerr, create a new file named `seerr.local` in your Fail2b ``` [Definition] -failregex = .*\[warn\]\[API\]\: Failed sign-in attempt.*"ip":"" +failregex = .*\[warn\]\[(API|Auth)\]\: Failed sign-in attempt.*"ip":"" ``` You can then add a jail using this filter in `jail.local`. Please see the [Fail2ban documentation](https://github.com/fail2ban/fail2ban/wiki) for details on how to configure the jail. diff --git a/server/routes/auth.ts b/server/routes/auth.ts index 66b18224a..f625e68f0 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -536,7 +536,7 @@ authRoutes.post('/jellyfin', async (req, res, next) => { case ApiErrorCode.InvalidCredentials: logger.warn( - 'Failed login attempt from user with incorrect Jellyfin credentials', + 'Failed sign-in attempt from user with incorrect Jellyfin credentials', { label: 'Auth', account: { @@ -553,7 +553,7 @@ authRoutes.post('/jellyfin', async (req, res, next) => { case ApiErrorCode.NotAdmin: logger.warn( - 'Failed login attempt from user without admin permissions', + 'Failed sign-in attempt from user without admin permissions', { label: 'Auth', account: { @@ -569,7 +569,7 @@ authRoutes.post('/jellyfin', async (req, res, next) => { case ApiErrorCode.NoAdminUser: logger.warn( - 'Failed login attempt from user without admin permissions and no admin user exists', + 'Failed sign-in attempt from user without admin permissions and no admin user exists', { label: 'Auth', account: {