From 5668223774527cb85dec17eb3f62807b76c3dc4e Mon Sep 17 00:00:00 2001 From: chiragkrishna Date: Sun, 8 Sep 2024 07:37:25 +0530 Subject: [PATCH] Add NotificationUsername to authentication failure --- .../Notifiers/AuthenticationFailureNotifier.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Jellyfin.Plugin.Webhook/Notifiers/AuthenticationFailureNotifier.cs b/Jellyfin.Plugin.Webhook/Notifiers/AuthenticationFailureNotifier.cs index 50e2840..ae640ea 100644 --- a/Jellyfin.Plugin.Webhook/Notifiers/AuthenticationFailureNotifier.cs +++ b/Jellyfin.Plugin.Webhook/Notifiers/AuthenticationFailureNotifier.cs @@ -46,6 +46,7 @@ public async Task OnEvent(AuthenticationRequestEventArgs eventArgs) dataObject[nameof(eventArgs.DeviceId)] = eventArgs.DeviceId ?? string.Empty; dataObject[nameof(eventArgs.DeviceName)] = eventArgs.DeviceName ?? string.Empty; dataObject[nameof(eventArgs.RemoteEndPoint)] = eventArgs.RemoteEndPoint ?? string.Empty; + dataObject["NotificationUsername"] = eventArgs.Username ?? string.Empty; await _webhookSender.SendNotification(NotificationType.AuthenticationFailure, dataObject) .ConfigureAwait(false);