mirror of
https://github.com/hanzoai/dataroom.git
synced 2026-10-30 18:41:07 +00:00
108 files: README, marketing copy, page titles, meta tags, footer text, email templates, .env.example, UI strings. URLs swapped from papermark.com/papermark.io to dataroom.hanzo.ai. Internal identifiers left intact per repo policy: localStorage keys (papermark.email/papermark.name/last_papermark_login — changing them logs users out), type field names (papermarkUserId), internal helper symbols (PAPERMARK_HEADERS, PapermarkSparkle component, isPapermarkUrl helper), internal-only filenames. LLM.md retains 'Upstream: Papermark' attribution line. Per-locale .po translations regenerate from source on the next lingui-extract CI run. DB migrations untouched (append-only history; rewriting them breaks installed schemas). LICENSE stays AGPL-3.0.
30 lines
670 B
TypeScript
30 lines
670 B
TypeScript
import ConfirmEmailChange from "@/components/emails/verification-email-change";
|
|
|
|
import { sendEmail } from "@/lib/resend";
|
|
|
|
export const sendEmailChangeVerificationRequestEmail = async (params: {
|
|
email: string;
|
|
url: string;
|
|
newEmail: string;
|
|
}) => {
|
|
const { url, email, newEmail } = params;
|
|
|
|
const emailTemplate = ConfirmEmailChange({
|
|
confirmUrl: url,
|
|
email,
|
|
newEmail,
|
|
});
|
|
|
|
try {
|
|
await sendEmail({
|
|
to: email,
|
|
system: true,
|
|
subject: "Confirm your email address change for Hanzo Dataroom!",
|
|
react: emailTemplate,
|
|
test: process.env.NODE_ENV === "development",
|
|
});
|
|
} catch (e) {
|
|
console.error(e);
|
|
}
|
|
};
|