Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

update the email content

Kiran K137249baf2b3
diff --git a/apps/web/app/api/auth/reset-password/route.ts b/apps/web/app/api/auth/reset-password/route.ts
index b7ff07cd9d..87620c15a4 100644
--- a/apps/web/app/api/auth/reset-password/route.ts
+++ b/apps/web/app/api/auth/reset-password/route.ts
@@ -59,7 +59,7 @@ export async function POST(req: NextRequest) {
// Send the email to inform the user that their password has been updated
await sendEmail({
- subject: `${process.env.NEXT_PUBLIC_APP_NAME}: Your password has been reset`,
+ subject: `Your ${process.env.NEXT_PUBLIC_APP_NAME} account password has been reset`,
email: identifier,
react: PasswordUpdated({
email: identifier,
diff --git a/apps/web/emails/password-updated.tsx b/apps/web/emails/password-updated.tsx
index 837a22cc28..5c505e35f0 100644
--- a/apps/web/emails/password-updated.tsx
+++ b/apps/web/emails/password-updated.tsx
@@ -21,7 +21,7 @@ export default function PasswordUpdated({
return (
<Html>
<Head />
- <Preview>Your Dub.co Login Link</Preview>
+ <Preview>Your password has been reset</Preview>
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">
@@ -34,17 +34,15 @@ export default function PasswordUpdated({
/>
</Section>
<Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
- Your Login Link
+ Password has been reset
</Heading>
<Text className="text-sm leading-6 text-black">
- Welcome to Dub.co!
+ The password for your Dub account has been successfully reset.
</Text>
<Text className="text-sm leading-6 text-black">
- Please click the magic link below to sign in to your account.
- </Text>
- <Section className="my-8 text-center"></Section>
- <Text className="text-sm leading-6 text-black">
- or copy and paste this URL into your browser:
+ If you did not make this change or you believe an unauthorised
+ person has accessed your account, please contact us immediately to
+ secure your account.
</Text>
<Footer email={email} />
</Container>
diff --git a/apps/web/emails/reset-password-link.tsx b/apps/web/emails/reset-password-link.tsx
index 93d1a5b004..fd8faf301d 100644
--- a/apps/web/emails/reset-password-link.tsx
+++ b/apps/web/emails/reset-password-link.tsx
@@ -16,7 +16,7 @@ import Footer from "./components/footer";
export default function ResetPasswordLink({
email = "[email protected]",
- url = "http://localhost:8888/api/auth/callback/email?callbackUrl=http%3A%2F%2Fapp.localhost%3A3000%2Flogin&token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&[email protected]",
+ url = "http://localhost:8888/auth/reset-password/adaf8468f590e70bb60fe40983321c2719c7bdc694063bd2437c1f8a53f7c90a",
}: {
email: string;
url: string;
@@ -24,7 +24,7 @@ export default function ResetPasswordLink({
return (
<Html>
<Head />
- <Preview>Your Dub.co Login Link</Preview>
+ <Preview>Reset Password Link</Preview>
<Tailwind>
<Body className="mx-auto my-auto bg-white font-sans">
<Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">
@@ -37,20 +37,21 @@ export default function ResetPasswordLink({
/>
</Section>
<Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">
- Your Login Link
+ Reset password link
</Heading>
<Text className="text-sm leading-6 text-black">
- Welcome to Dub.co!
+ You are receiving this email because we received a password reset
+ request for your account at Dub.
</Text>
<Text className="text-sm leading-6 text-black">
- Please click the magic link below to sign in to your account.
+ Please click the button below to reset your password.
</Text>
<Section className="my-8 text-center">
<Link
className="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"
href={url}
>
- Sign in
+ Reset Password
</Link>
</Section>
<Text className="text-sm leading-6 text-black">