add sync events for user login/logout

This commit is contained in:
sbwalker
2024-12-09 10:55:40 -05:00
parent 2c721ad5dd
commit 13e4267c11
4 changed files with 11 additions and 1 deletions

View File

@ -374,6 +374,8 @@ namespace Oqtane.Managers
_users.UpdateUser(user);
_logger.Log(LogLevel.Information, this, LogFunction.Security, "User Login Successful For {Username} From IP Address {IPAddress}", user.Username, LastIPAddress);
_syncManager.AddSyncEvent(alias, EntityNames.User, user.UserId, "Login");
if (setCookie)
{
await _identitySignInManager.SignInAsync(identityuser, isPersistent);