refactor(logs): align failed login attempt message with failed sign-i… (#2914)

Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
This commit is contained in:
Ludovic Ortega
2026-04-20 17:19:31 +02:00
committed by GitHub
parent 86e780e950
commit 3e4bf1b9f6
2 changed files with 4 additions and 4 deletions

View File

@@ -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":"<HOST>"
failregex = .*\[warn\]\[(API|Auth)\]\: Failed sign-in attempt.*"ip":"<HOST>"
```
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.

View File

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