Skip to content

redirect to home page after password reset via "/api/users/forgot-password" #10354

Answered by akhrarovsaid
xu4wang asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @xu4wang,

So, realistically, I think the flow that you want is to have this done on your own frontend - not through the Payload admin panel. The default behaviour assumes usage of the admin ui. It sounds like what you want is for this flow to be handled in your frontend app, where the user gets directed to a forgot-password page that is familiar and styled like, and is part of, the rest of your frontend.

To accomplish this, have a look at the auth > email > forgot-password section of the docs here.

This is how Payload actually handles this flow internally via api's, just for a reference if you get stuck.

What you roughly want to do here is:

  • Create a custom HTML email where you attach…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xu4wang
Comment options

Answer selected by xu4wang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants