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:
adilallo committed 2026-11-22 16:58:30 -07:00
1 parent 600056499c
commit a725cf1a32
33 files changed
+1002 -89

No files matched your search

+12
View File
@@ -53,14 +53,26 @@
"title": "Log in",
"description": "Enter your email and we'll send you a login link. No password needed."
},
"loginConfirm": {
"title": "Open this login link",
"description": "Press continue to log in."
},
"invite": {
"title": "Invitation",
"description": "Read a CommunityRule you were invited to see."
},
"inviteConfirm": {
"title": "Open this invitation",
"description": "Press continue to read the Rule you were invited to."
},
"inviteExpired": {
"title": "This link has expired",
"description": "Ask for a new invitation link to read the Rule."
},
"emailChangeConfirm": {
"title": "Confirm your new email",
"description": "Press continue to change the login address on this account."
},
"profile": {
"title": "Profile",
"description": "Manage the Rules you have finished, saved progress, and your account."
+5
View File
@@ -33,6 +33,11 @@
"confirm": "Make a copy",
"copyFailed": "Could not make a copy. Try again.",
"nameRequired": "Add your community’s name to continue.",
"confirmTitle": "Open this invitation",
"confirmDescription": "Press continue to read the Rule you were invited to. This keeps the link unused until you choose to open it.",
"confirmButton": "Continue",
"confirmMissingTitle": "This invitation link is missing",
"confirmMissingDescription": "Ask the person who invited you to send the invitation again.",
"expiredTitle": "This link has expired",
"expiredDescription": "Enter the email the invitation was sent to. We’ll send a new link that works for 60 minutes.",
"emailLabel": "Email address",
+6
View File
@@ -20,6 +20,12 @@
"sentBody": "We sent a login link to {email}. It works for {minutes} minutes.",
"expiredTitle": "That link has expired",
"expiredBody": "That login link has expired or was already used. Send a new one.",
"confirmTitle": "Open this login link",
"confirmDescription": "Press continue to log in. This keeps the link unused until you choose to open it.",
"confirmButton": "Continue",
"confirmMissingTitle": "This login link is missing",
"confirmMissingDescription": "Request a new login link from the login page.",
"confirmMissingButton": "Go to log in",
"legalPrefix": "By continuing, you agree to our ",
"legalAnd": " and ",
"legalSuffix": ".",
+6
View File
@@ -55,6 +55,12 @@
"emailChangeSubmit": "Send confirmation link",
"emailChangeConfirmationClose": "Close",
"emailChangeSuccess": "Your account email was updated.",
"emailChangeConfirmTitle": "Confirm your new email",
"emailChangeConfirmDescription": "Press continue to change the login address on this account. This keeps the link unused until you choose to open it.",
"emailChangeConfirmButton": "Confirm email",
"emailChangeConfirmMissingTitle": "This confirmation link is missing",
"emailChangeConfirmMissingDescription": "Start a new email change from your profile.",
"emailChangeConfirmMissingButton": "Go to profile",
"emailChangeVerifyExpired": "That confirmation link expired or was already used. Start a new email change from your profile.",
"emailChangeVerifyInvalid": "That confirmation link is not valid.",
"emailChangeVerifyTaken": "That address was claimed by another account while you were confirming. Try a different email.",