Various pre-launch fixes.
This commit is contained in:
parent
246f2023bc
commit
1c3273cee2
9 changed files with 29 additions and 39 deletions
|
|
@ -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,
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue