Keep expired invitation hashes so a request for a new link still sends mail.

Clearing the hash made the expired page report success without sending, and made the invite look accepted.
This commit is contained in:
adilallo committed 2026-11-10 15:43:30 -07:00
1 parent b4d0d085d3
commit a8b23bddc2
6 files changed
+15 -48

No files matched your search

+1 -1
View File
@@ -10,7 +10,7 @@ read this text. Do not switch the route on from this file.
| --- | --- | --- |
| Login and save-progress links | Work for **60 minutes**. Unused rows, and any draft they carry, are deleted once expired. A daily job runs the delete, so they are gone **within 24 hours** of expiry. | `MAGIC_LINK_TTL_MS`, Cloudron scheduler `prune-expired` |
| Email-change links | Same as login links: **60 minutes**, then gone within **24 hours**. | `EMAIL_CHANGE_TTL_MS` |
| Unused invitation tokens | The unused token is cleared once the invite expires. Gone within **24 hours** of expiry. The invitation row stays so it can be sent again. | Daily prune |
| Unused invitation tokens | The link stops granting access when it expires (**60 minutes**). The hash stays on the invitation so the person can request a new link from the expired page, and so the organizer can send it again. The daily job does not delete it. | `STAKEHOLDER_INVITE_TTL_MS` |
| Workshop inquiries that do not lead to a workshop | **12 months**, then deleted. | `WORKSHOP_INQUIRY_RETENTION_MS` |
| Ask an organizer messages | **Not stored** on CommunityRule. They are emailed to MEDLab. MEDLab deletes mailbox copies after **12 months**. | Mail only |
| Unused accounts | **Kept until the person deletes the account.** There is no unused-account timer at launch. | — |