Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification AuthenticationFailure not sent - Discord #294

Open
MrMoustaki57 opened this issue Oct 19, 2024 · 1 comment
Open

Notification AuthenticationFailure not sent - Discord #294

MrMoustaki57 opened this issue Oct 19, 2024 · 1 comment

Comments

@MrMoustaki57
Copy link

Hello everyone,

I would like to receive Discord notifications in a dedicated text room of the connection alerts of the users of my Jellyfin server. I receive successful connection alerts and blocked account alerts, but I can't receive bad password alerts.

My Jellyfin is version 10.9.11 and the Webhook version is 15.0.0.0.

Here is the template used:

{
    "content": "{{MentionType}}",
    "username": "{{BotUsername}}",
    "embeds": [
        {
            {{#if_equals NotificationType 'AuthenticationSuccess'}}
                "title": "User - New Login",
                "description": "User Authentication - Success",
                "fields": [
                    {
                        "name": "Username",
                        "value": "{{NotificationUsername}}",
                        "inline": false
                    },
                    {
                        "name": "Last Login",
                        "value": "{{LastLoginDate}}",
                        "inline": true
                    },
                    {
                        "name": "Last Activity",
                        "value": "{{LastActivityDate}}",
                        "inline": true
                    }
                ],
                "color": 3329857
            {{else}}
                {{#if_equals NotificationType 'UserLockedOut'}}
                    "title": "User - Blocked",
                    "description": "User Authentication - Account Locked",
                    "fields": [
                        {
                            "name": "Username",
                            "value": "{{NotificationUsername}}",
                            "inline": false
                        }
                    ],
                    "color": 15286079
                {{else}}
                    {{#if_equals NotificationType 'AuthenticationFailure'}}
                        "title": "User - Login Failed",
                        "description": "User - Login Failed",
                        "fields": [
                            {
                                "name": "Username",
                                "value": "{{NotificationUsername}}",
                                "inline": false
                            }
                        ],
                        "color": 16753920
                    {{else}}
                        "title": "Unsupported Notification Type",
                        "description": "Notification not supported",
                        "color": ""
                    {{/if_equals}}
                {{/if_equals}}
            {{/if_equals}},

            "footer": {
                "text": "{{ServerName}} | Jellyfin Server v{{ServerVersion}}"
            }
        }
    ]
}

I tested with the {{Username}} and {{NotificationUsername}} variables without more success.

Do other people have the same problem? Do some people manage to receive notifications for bad passwords?

Thanks in advance!

@TangKii
Copy link

TangKii commented Jan 10, 2025

same problem with Generic type webhook, only can receice AuthenticationSuccess message, can not receice AuthenticationFailure messge

Jellyfin version:10.10.3
Webhook version: 15.0.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants