SECURITY: Convert send_digest to a post request (#19746)

Co-authored-by: Isaac Janzen <isaac.janzen@discourse.org>
This commit is contained in:
Alan Guo Xiang Tan
2023-01-05 06:57:12 +08:00
committed by GitHub
parent c2013865d7
commit cf862e7365
3 changed files with 15 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ EmailPreview.reopenClass({
sendDigest(username, lastSeenAt, email) {
return ajax("/admin/email/send-digest.json", {
type: "POST",
data: { last_seen_at: lastSeenAt || oneWeekAgo(), username, email },
});
},