Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/authentication/email.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,13 @@ The following options are available:
| **`generateEmailHTML`** | Allows for overriding the HTML within emails that are sent to users attempting to reset their password. [More details](#generateEmailHTML). |
| **`generateEmailSubject`** | Allows for overriding the subject of the email that is sent to users attempting to reset their password. [More details](#generateEmailSubject). |

<Banner type="warning">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feels like it'd be a type success, not a warning.

**Tip:** Payload provides a built-in password reset page. If you don't need a
custom frontend, you can link directly to `${serverURL}/admin/reset/${token}`.
The admin and reset routes are configurable via `config.routes.admin` and
`config.admin.routes.reset` respectively.
</Banner>

#### generateEmailHTML

This function allows for overriding the HTML within emails that are sent to users attempting to reset their password. The function should return a string that supports HTML, which can be a full HTML email.
Expand Down