diff --git a/server/emails/templates/ConfirmUpdateEmail.tsx b/server/emails/templates/ConfirmUpdateEmail.tsx index a7b6ab8c9e..e50d97bf35 100644 --- a/server/emails/templates/ConfirmUpdateEmail.tsx +++ b/server/emails/templates/ConfirmUpdateEmail.tsx @@ -11,6 +11,7 @@ import Heading from "./components/Heading"; type Props = EmailProps & { code: string; + previous: string; teamUrl: string; }; @@ -30,17 +31,16 @@ export default class ConfirmUpdateEmail extends BaseEmail { return `Here’s your email change confirmation.`; } - protected renderAsText({ teamUrl, code, to }: Props): string { + protected renderAsText({ teamUrl, code, previous, to }: Props): string { return ` You requested to update your ${env.APP_NAME} account email. Please -follow the link below to confirm the change to ${to}. +follow the link below to confirm the change from ${previous} to ${to}. ${this.updateLink(teamUrl, code)} - `; } - protected render({ teamUrl, code, to }: Props) { + protected render({ teamUrl, code, previous, to }: Props) { return (
@@ -49,7 +49,8 @@ follow the link below to confirm the change to ${to}. Your email update request

You requested to update your {env.APP_NAME} account email. Please - click below to confirm the change to {to}. + click below to confirm the change from {previous} to{" "} + {to}.

diff --git a/server/routes/api/users/users.ts b/server/routes/api/users/users.ts index 8956abe0aa..bc34f3b027 100644 --- a/server/routes/api/users/users.ts +++ b/server/routes/api/users/users.ts @@ -234,6 +234,7 @@ router.post( await new ConfirmUpdateEmail({ to: email, + previous: user.email, code: user.getEmailUpdateToken(email), teamUrl: team.url, }).schedule();