public async Task HandleAsync(UserPasswordResetTokenGeneratedIntegrationEvent integrationEvent) { var tokenUrl = $"{_redirectService.RedirectToWebSpa($"/password/reset/{integrationEvent.UserId}")}?code={integrationEvent.Code}"; await _userService.SendEmailAsync( integrationEvent.UserId.ParseEntityId <UserId>(), Options.Templates.UserPasswordResetTokenGenerated, new { tokenUrl }); }
public async Task HandleAsync(UserEmailConfirmationTokenGeneratedIntegrationEvent integrationEvent) { var tokenUrl = $"{_redirectService.RedirectToWebSpa("/email/confirm")}?userId={integrationEvent.UserId}&code={integrationEvent.Code}"; await _userService.SendEmailAsync( integrationEvent.UserId.ParseEntityId <UserId>(), Options.Templates.UserEmailConfirmationTokenGenerated, new { tokenUrl }); }