Various pre-launch fixes.
Some checks failed
Test / vitest (push) Successful in 14m0s
Test / playwright (push) Failing after 20m2s
Test / Notify on failure (push) Successful in 3s

This commit is contained in:
Jennie Robinson Faber 2026-05-22 18:53:07 +01:00
parent 246f2023bc
commit 1c3273cee2
9 changed files with 29 additions and 39 deletions

View file

@ -68,12 +68,14 @@ export default defineEventHandler(async (event) => {
await assignMemberNumber(member._id)
// Update pre-registration
// Update pre-registration. Burning the jti here (instead of in verify) keeps
// the verify endpoint idempotent so a page refresh doesn't lock the invitee out.
await PreRegistration.findByIdAndUpdate(preReg._id, {
$set: {
status: 'accepted',
acceptedAt: new Date(),
memberId: member._id,
magicLinkJtiUsed: true,
}
})