diff --git a/src/Skoruba.Duende.IdentityServer.STS.Identity/Controllers/AccountController.cs b/src/Skoruba.Duende.IdentityServer.STS.Identity/Controllers/AccountController.cs index a352bde1..fe379505 100644 --- a/src/Skoruba.Duende.IdentityServer.STS.Identity/Controllers/AccountController.cs +++ b/src/Skoruba.Duende.IdentityServer.STS.Identity/Controllers/AccountController.cs @@ -517,6 +517,7 @@ public async Task LoginWithRecoveryCode(LoginWithRecoveryCodeView if (result.Succeeded) { + await _events.RaiseAsync(new UserLoginSuccessEvent(user.UserName, user.Id.ToString(), user.UserName)); return LocalRedirect(string.IsNullOrEmpty(model.ReturnUrl) ? "~/" : model.ReturnUrl); } @@ -573,6 +574,7 @@ public async Task LoginWith2fa(LoginWith2faViewModel model) if (result.Succeeded) { + await _events.RaiseAsync(new UserLoginSuccessEvent(user.UserName, user.Id.ToString(), user.UserName)); return LocalRedirect(string.IsNullOrEmpty(model.ReturnUrl) ? "~/" : model.ReturnUrl); }