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
This PR adds support for sending the user an email notification when
their password has been changed.
3 new environment variables are introduced:
- `GOTRUE_MAILER_SUBJECTS_PASSWORD_CHANGED_NOTIFICATION`: Email subject
to use for password changed notification.
- `GOTRUE_MAILER_TEMPLATES_PASSWORD_CHANGED_NOTIFICATION`: The URL to
specify a custom template.
-
`GOTRUE_MAILER_NOTIFICATION_CONFIGURATIONS_PASSWORD_CHANGED_NOTIFICATION_ENABLED`:
whether the notification is enabled or not.
The feature is disabled by default. To enable it, the
`GOTRUE_MAILER_NOTIFICATION_CONFIGURATIONS_PASSWORD_CHANGED_NOTIFICATION_ENABLED`
environment variable must be set to `true`.
The default email will look as follows:
<img width="828" height="472" alt="default"
src="https://github.com/user-attachments/assets/70588e93-b8aa-4bb9-82d9-b9e898aa7035"
/>
URL path to an email template to use when notifying a user that their password has been changed. (e.g. `https://www.example.com/path-to-email-template.html`)
670
+
`SiteURL` and `Email` variables are available.
671
+
672
+
Default Content (if template is unavailable):
673
+
674
+
```html
675
+
<h2>Your password has been changed</h2>
676
+
677
+
<p>
678
+
This is a confirmation that the password for your account {{ .Email }} has
679
+
just been changed. If you did not make this change, please contact support
0 commit comments