From f770fac437dac043e3c3be0047b65eada39a16c8 Mon Sep 17 00:00:00 2001 From: Luca Bertelli Date: Fri, 29 Jul 2022 11:37:23 +0200 Subject: [PATCH] MAILER_SECURE_EMAIL_CHANGE_ENABLED env variable (#7948) * MAILER_SECURE_EMAIL_CHANGE_ENABLED env variable This needs to be better documented also at https://github.com/supabase/gotrue. This env variable can only be found at https://github.com/supabase/gotrue/blob/master/example.env#L38 * MAILER_SECURE_EMAIL_CHANGE_ENABLED env variable See https://github.com/Luca8991/supabase/commit/029ca418cbaddfc9d59c1a96e7e222cdc0195ea6 --- web/docs/gotrue/server/about.md | 4 ++++ web/docs/reference/tools/auth.mdx | 1 + 2 files changed, 5 insertions(+) diff --git a/web/docs/gotrue/server/about.md b/web/docs/gotrue/server/about.md index 4acef396959..1937e117f52 100644 --- a/web/docs/gotrue/server/about.md +++ b/web/docs/gotrue/server/about.md @@ -205,6 +205,10 @@ Controls the minimum amount of time that must pass before sending another signup If you do not require email confirmation, you may set this to `true`. Defaults to `false`. +`MAILER_SECURE_EMAIL_CHANGE_ENABLED` - `bool` + +If `true`, send an email to both the user's current and new email with a confirmation link, otherwise send an email with confirmation link only to new email. Defaults to `true`. + `MAILER_URLPATHS_INVITE` - `string` URL path to use in the user invite email. Defaults to `/`. diff --git a/web/docs/reference/tools/auth.mdx b/web/docs/reference/tools/auth.mdx index 1609b0bf4d5..dcdff06de52 100644 --- a/web/docs/reference/tools/auth.mdx +++ b/web/docs/reference/tools/auth.mdx @@ -108,6 +108,7 @@ These options control the emails sent from GoTrue. | Parameter | Type | Description | | :-------- | :------- | :------------------------- | | `MAILER_AUTOCONFIRM` | `bool` | If you do not require email confirmation, you may set this to `true`. Defaults to `false`. | +| `MAILER_SECURE_EMAIL_CHANGE_ENABLED` | `bool` | If `true`, send an email to both the user's current and new email with a confirmation link, otherwise send an email with confirmation link only to new email. Defaults to `true`. | | `MAILER_OTP_EXP` | `string` | Controls the duration an email link or otp is valid for. Defaults to 24 hrs. | | `MAILER_URLPATHS_INVITE` | `string` | URL path to use in the user invite email. Defaults to `/`. | | `MAILER_URLPATHS_CONFIRMATION` | `string` | URL path to use in the signup confirmation email. Defaults to `/`. |