Add NotificationUsername & ClientName to authentication failure (#284)

This commit is contained in:
chiragkrishna 2024-09-09 19:27:11 +05:30 committed by GitHub
parent 4a50fa2416
commit 1927ff2746
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -46,6 +46,8 @@ public class AuthenticationFailureNotifier : IEventConsumer<AuthenticationReques
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;
dataObject["ClientName"] = eventArgs.App ?? string.Empty;
await _webhookSender.SendNotification(NotificationType.AuthenticationFailure, dataObject)
.ConfigureAwait(false);

View File

@ -85,8 +85,6 @@ See [Templates](Jellyfin.Plugin.Webhook/Templates) for sample templates.
- Playback client name
- Client
- Playback client name
- App
- client name in Authentication Failure
- RemoteEndPoint
- IP Address of client