mirror of
https://github.com/jellyfin/jellyfin-plugin-webhook.git
synced 2024-11-27 00:00:28 +00:00
Add NotificationUsername & ClientName to authentication failure (#284)
This commit is contained in:
parent
4a50fa2416
commit
1927ff2746
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user