Send email notification on password reset (#13756)

Co-authored-by: Aleksander <alf@umrabco.dk>
This commit is contained in:
Fjellvang
2023-01-31 09:05:15 +01:00
committed by GitHub
parent 03365f55c4
commit 823c59cee1

View File

@@ -421,7 +421,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());
}