From 7c47af4a32c79204bb54e0d69e54f194dbb97a28 Mon Sep 17 00:00:00 2001 From: EGOIST Date: Sat, 14 May 2022 18:41:25 +0800 Subject: [PATCH] update login email template --- web/src/lib/mailgun.server.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/web/src/lib/mailgun.server.ts b/web/src/lib/mailgun.server.ts index a9298a3c..9a49ff96 100644 --- a/web/src/lib/mailgun.server.ts +++ b/web/src/lib/mailgun.server.ts @@ -60,13 +60,20 @@ export const sendLoginEmail = async (payload: { IS_PROD ? "https" : "http" }://${OUR_DOMAIN}/api/login?${query.toString()}` - let subject = `Log in to ${APP_NAME}` + let subject = `Sign in to ${APP_NAME}` - let html = `

Please use the link below to log in to ${APP_NAME}:

+ let html = ` +

Hello,

- login +

We received a request to sign in to ${APP_NAME} using this email address, please click the link below to sign in:

+ + Sign in to ${APP_NAME} -

This link will expire in 10 minutes.

+

This link will expire in 10 minutes. If you did not request this link, you can safely ignore this email.

+ +

Thanks,

+ +

Your Proselog Team

` if (payload.subscribeForm) {