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:
1 parent
b4d0d085d3
commit
a8b23bddc2
6 files changed
+15
-48
No files matched your search
@@ -294,8 +294,9 @@ Periods the privacy policy states. Source of truth:
|
||||
`node /app/prune-expired.bundle.cjs` (the production bundle of
|
||||
[`scripts/prune-sessions.ts`](../../scripts/prune-sessions.ts)) and
|
||||
deletes expired sessions, unused login / save-progress / email-change
|
||||
tokens and the drafts they carry, unused invitation tokens, and workshop
|
||||
inquiries older than 12 months.
|
||||
tokens and the drafts they carry, and workshop inquiries older than 12
|
||||
months. It leaves invitation token hashes in place: an expired link cannot
|
||||
be used to join, and that hash is how the person requests a new link.
|
||||
|
||||
Manual runs:
|
||||
|
||||
|
||||
@@ -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. | — |
|
||||
|
||||
Reference in new issue
Block a user