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
            });
        }
示例#2
0
        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
            });
        }