mirror of
https://github.com/seerr-team/seerr.git
synced 2026-04-22 08:20:00 -04:00
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:
@@ -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.
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user