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
@@ -159,7 +159,8 @@ model RuleStakeholder {
|
||||
/// Set when the invitee completes the verify link (same account as `email`).
|
||||
userId String?
|
||||
user User? @relation("RuleStakeholderUser", fields: [userId], references: [id], onDelete: SetNull)
|
||||
/// One-time invite token (hashed); null after accept or revoke path (consume on verify).
|
||||
/// One-time invite token (hashed). Kept after accept so a used link can still
|
||||
/// send a new one from the expired screen. `acceptedAt` is the accepted marker.
|
||||
inviteTokenHash String? @unique
|
||||
inviteExpiresAt DateTime?
|
||||
invitedAt DateTime @default(now())
|
||||
|
||||
Reference in new issue
Block a user