fix #2082 - missing SiteId causing password reset notifications to not be created

This commit is contained in:
Shaun Walker 2022-03-27 20:02:19 -04:00
parent f9432acf1b
commit 8b0b7492f5

View File

@ -445,7 +445,7 @@ namespace Oqtane.Controllers
"\n\nIf you did not request to reset your password you can safely ignore this message." +
"\n\nThank You!";
var notification = new Notification(user.SiteId, user, "User Password Reset", body);
var notification = new Notification(_tenantManager.GetAlias().SiteId, user, "User Password Reset", body);
_notifications.AddNotification(notification);
_logger.Log(LogLevel.Information, this, LogFunction.Security, "Password Reset Notification Sent For {Username}", user.Username);
}