Use EventManager for AuthenticationSuccess, AuthenticationFailure (#8960)

This commit is contained in:
Cody Robibero
2023-01-07 11:31:10 -07:00
committed by GitHub
parent 769c48c629
commit 678bcf9a80
3 changed files with 5 additions and 20 deletions

View File

@@ -157,7 +157,9 @@ namespace Jellyfin.Server.Implementations.Users
await UpdateUserInternalAsync(dbContext, user).ConfigureAwait(false);
}
OnUserUpdated?.Invoke(this, new GenericEventArgs<User>(user));
var eventArgs = new UserUpdatedEventArgs(user);
await _eventManager.PublishAsync(eventArgs).ConfigureAwait(false);
OnUserUpdated?.Invoke(this, eventArgs);
}
/// <inheritdoc/>