Skip to content

Commit

Permalink
Add NotificationUsername to authentication failure
Browse files Browse the repository at this point in the history
  • Loading branch information
chiragkrishna committed Sep 8, 2024
1 parent aa60e5a commit 5668223
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5668223

Please sign in to comment.