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: {