From 8b0b7492f5bff47116e7e17b439d8fdc45778cda Mon Sep 17 00:00:00 2001 From: Shaun Walker Date: Sun, 27 Mar 2022 20:02:19 -0400 Subject: [PATCH] fix #2082 - missing SiteId causing password reset notifications to not be created --- Oqtane.Server/Controllers/UserController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Oqtane.Server/Controllers/UserController.cs b/Oqtane.Server/Controllers/UserController.cs index 97cf4976..e6b65e3a 100644 --- a/Oqtane.Server/Controllers/UserController.cs +++ b/Oqtane.Server/Controllers/UserController.cs @@ -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); }