Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Mar 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Oqtane.Server/Controllers/UserController.cs
Expand Up @@ -445,7 +445,7 @@ public async Task Forgot([FromBody] User user)
"\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);
}
Expand Down