コード例 #1
0
        /// <inheritdoc />
        public async Task SendEmailResetingAsync(string confirmationLink, ForgotPasswordDto forgotPasswordDto)
        {
            var user = await _userManager.FindByEmailAsync(forgotPasswordDto.Email);

            user.EmailSendedOnForgotPassword = DateTime.Now;
            await _userManager.UpdateAsync(user);

            var emailContent = _emailContentService.GetAuthResetPasswordEmail(confirmationLink);
            await _emailSendingService.SendEmailAsync(forgotPasswordDto.Email, emailContent.Subject, emailContent.Message, emailContent.Title);
        }