Open tanwirahmad opened 3 years ago
Is there a technical reason why the forgot password option doesn't work for this use case? Or just because the Setup Password email template is customized for the first time setup?
I am not sure about how to use the forgot password option for that use case. My understanding is that we use forgot password option when the password has already been set by the user. Please correct me if I am wrong.
Or just because the Setup Password email template is customized for the first time setup?
This could be one reason.
The Setup Password and the Forgot Password are functionally the same, they just have a different email template.
Okay. Is there a way to fix the template issue?
@tanwirahmad
Sorry, I don't see reference to a "template issue". What do you mean? Can you please explain further?
Sorry, I didn't explain it very well. What I meant is that, since both APIs are technically the same, is there a way to use the email template defined for the Setup Password with the Forgot Password API?
Ah, thanks for the explanation.
What I meant is that, since both APIs are technically the same, is there a way to use the email template defined for the Setup Password with the Forgot Password API?
I think this has changed from a feature request to a support discussion. Let's continue any further conversation on the forum. I'll leave this issue open for the feature request, however.
Here's the answer to your question: https://fusionauth.io/community/forum/topic/878/can-you-use-the-same-template-for-the-forgot-password-and-send-password-emails
Resend Set Password Email
Problem
Maybe I am missing something very obvious but I couldn't find a way to resend the set password email (not the forgot password email) containing a new link through the API.
The problem is that the
Setup Password Email
has an expiry. And I would like that the user should be able to request a new link for setting up the password if the last link is expired without filling in the registration information again.Solution
For example, the requested API/feature would behave/work something like Resend Verification Email API where a user can request a new link/email if the link in the last email is expired.
Alternatives/workarounds
One possible workaround would be to increase the expiration time of the password setup email, but then the question would be for how long and what would a user do after that.
Additional Context
Forum post: https://fusionauth.io/community/forum/topic/588/resend-set-password-email