Send email notification on password reset (#13756)
Co-authored-by: Aleksander <alf@umrabco.dk>
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user