From 04d215c10440bfc5b437d34b53f17f810dd480cb Mon Sep 17 00:00:00 2001 From: Rodrigo Mansueli Nunes Date: Thu, 19 Jan 2023 17:35:03 -0300 Subject: [PATCH 1/2] update confirmation template to use GoTrue's template --- studio/pages/api/auth/[ref]/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/pages/api/auth/[ref]/config.ts b/studio/pages/api/auth/[ref]/config.ts index d7f62b2de4d..9db70f40ed4 100644 --- a/studio/pages/api/auth/[ref]/config.ts +++ b/studio/pages/api/auth/[ref]/config.ts @@ -114,7 +114,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { '

You have been invited

\n\n

You have been invited to create a user on {{ .SiteURL }}. Follow this link to accept the invite:

\n

Accept the invite

', MAILER_TEMPLATES_CONFIRMATION: null, MAILER_TEMPLATES_CONFIRMATION_CONTENT: - '

Confirm your signup

\n\n

Follow this link to confirm your user:

\n

Confirm your mail

', + '

Confirm your email

\n\n

Follow this link to confirm your email:

\n\n

Confirm your email address

\n\n

Alternatively, enter the code: {{ .Token }}

', MAILER_TEMPLATES_RECOVERY: null, MAILER_TEMPLATES_RECOVERY_CONTENT: '

Reset Password

\n\n

Follow this link to reset the password for your user:

\n

Reset Password

', From 55ad72b710c2e367a5cf6dcb1c727eaf63df572a Mon Sep 17 00:00:00 2001 From: Rodrigo Mansueli Nunes Date: Fri, 20 Jan 2023 09:29:07 -0300 Subject: [PATCH 2/2] Removed the token part as suggested. --- studio/pages/api/auth/[ref]/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/studio/pages/api/auth/[ref]/config.ts b/studio/pages/api/auth/[ref]/config.ts index 9db70f40ed4..66545dba0ae 100644 --- a/studio/pages/api/auth/[ref]/config.ts +++ b/studio/pages/api/auth/[ref]/config.ts @@ -114,7 +114,7 @@ const handleGetAll = async (req: NextApiRequest, res: NextApiResponse) => { '

You have been invited

\n\n

You have been invited to create a user on {{ .SiteURL }}. Follow this link to accept the invite:

\n

Accept the invite

', MAILER_TEMPLATES_CONFIRMATION: null, MAILER_TEMPLATES_CONFIRMATION_CONTENT: - '

Confirm your email

\n\n

Follow this link to confirm your email:

\n\n

Confirm your email address

\n\n

Alternatively, enter the code: {{ .Token }}

', + '

Confirm your email

\n\n

Follow this link to confirm your email:

\n\n

Confirm your email address

', MAILER_TEMPLATES_RECOVERY: null, MAILER_TEMPLATES_RECOVERY_CONTENT: '

Reset Password

\n\n

Follow this link to reset the password for your user:

\n

Reset Password

',