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

+18
View File
@@ -0,0 +1,18 @@
import type { Metadata } from "next";
import type { ReactNode } from "react";
import messages from "../../../../messages/en/index";
import { NO_INDEX_ROBOTS, routeMetadata } from "../../../../lib/siteMetadata";
export const metadata: Metadata = routeMetadata("/email-change/confirm", {
title: messages.metadata.emailChangeConfirm.title,
description: messages.metadata.emailChangeConfirm.description,
robots: NO_INDEX_ROBOTS,
});
export default function EmailChangeConfirmLayout({
children,
}: {
children: ReactNode;
}) {
return children;
}