You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: notify users when their phone number has changed (#2184)
This PR adds support for sending the user an email notification when
their phone number has been changed.
3 new environment variables are introduced:
- `GOTRUE_MAILER_SUBJECTS_PHONE_CHANGED_NOTIFICATION`: Email subject to
use for phone changed notification.
- `GOTRUE_MAILER_TEMPLATES_PHONE_CHANGED_NOTIFICATION`: The URL to
specify a custom template.
- `GOTRUE_MAILER_NOTIFICATIONS_PHONE_CHANGED_ENABLED`: whether the
notification is enabled or not.
The feature is disabled by default. To enable it, the
`GOTRUE_MAILER_NOTIFICATIONS_PHONE_CHANGED_ENABLED` environment variable
must be set to `true`.
URL path to an email template to use when notifying a user that their phone number has been changed. (e.g. `https://www.example.com/path-to-email-template.html`)
725
+
`Email`, `Phone`, and `OldPhone` variables are available.
726
+
727
+
Default Content (if template is unavailable):
728
+
729
+
```html
730
+
<h2>Your phone number has been changed</h2>
731
+
732
+
<p>
733
+
The phone number for your account {{ .Email }} has been changed from {{
734
+
.OldPhone }} to {{ .Phone }}.
735
+
</p>
736
+
<p>If you did not make this change, please contact support immediately.</p>
URL path to an email template to use when notifying a user that they have enrolled in a new MFA factor. (e.g. `https://www.example.com/path-to-email-template.html`)
0 commit comments