Spend login, invite, and email-change links only after a confirm POST so mail scanners cannot use them up.
GET still shows a one-button page, a used invitation can resend or reopen for the signed-in invitee, and an email-change GET no longer signs the account out.
This commit is contained in:
1 parent
600056499c
commit
a725cf1a32
33 files changed
+1002
-89
No files matched your search
@@ -47,8 +47,8 @@ export async function deleteExpiredWorkshopInquiries(
|
||||
*
|
||||
* Does not delete stakeholder rows, accounts, or invitation token hashes.
|
||||
* Verify already rejects an invite once `inviteExpiresAt` has passed. The
|
||||
* hash is how `/invite/expired` finds that row to send a new link, and a
|
||||
* null hash is treated as an accepted invite.
|
||||
* hash is how `/invite/expired` finds that row to send a new link, including
|
||||
* after the original link was used. `acceptedAt` marks an accepted invite.
|
||||
*/
|
||||
export async function pruneExpiredRecords(
|
||||
db: PruneStore,
|
||||
|
||||
Reference in new issue
Block a user