redirect to home page after password reset via "/api/users/forgot-password" #10354
-
After user make an API call to /api/users/forgot-password, a email will be sent with the link:
However, the user will be redirected to
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
I think you will also find the following useful:
|
Beta Was this translation helpful? Give feedback.
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: