Send email notification on password reset (#13757)

Co-authored-by: Aleksander <alf@umrabco.dk>
This commit is contained in:
Fjellvang
2023-01-31 09:04:26 +01:00
committed by GitHub
parent e94328ad57
commit 417f31fba5

View File

@@ -423,7 +423,7 @@ public class AuthenticationController : UmbracoApiControllerBase
var mailMessage = new EmailMessage(from, user.Email, subject, message, true);
await _emailSender.SendAsync(mailMessage, Constants.Web.EmailTypes.PasswordReset);
await _emailSender.SendAsync(mailMessage, Constants.Web.EmailTypes.PasswordReset, true);
_userManager.NotifyForgotPasswordRequested(User, user.Id.ToString());
}