• Resolved ninievy

    (@ninievy)


    Hi again,

    Thanks for your help earlier. Now, I’m wondering how this works. I have sent a request to this endpoint: /wp-json/bdpwr/v1/reset-password

    The user received this email:

     A password reset was requested for your account and your password reset code is ****.
    
          Please note that this code will expire at 17:42.

    Where is the user supposed to add this code?
    There is no link to click on.
    Maybe there is something I didn’t understand.

    Would you explain the correct way to set this up for me? Knowing that I want that my user receives an email that will give them a link to reset their password that they can click on directly.

    Also, is it possible to edit the content of the email to customize it?

    Thanks a lot

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dominic_ks

    (@dominic_ks)

    Hello,

    The main use case for this plugin was to facilitate password resets when you are using WordPress as a headless system, therefore, the email does not contain a link because, where would it go to?

    e.g. I have used this to implement password resets in an Angular app, and so I built a UI that initially allows the user to request the code, and then displays an input for them to enter the code once they have received it, along with their new password. i.e. they’re already on the relevant page.

    If you are going to implement a different flow and want to add a link to the email, you can use the bdpwr_code_email_text filter, just be aware you’ll still need to provide the UI for them to use in order to actually reset their password.

    Hope that makes sense.

    Thread Starter ninievy

    (@ninievy)

    OK thank you very much for your help, it’s very clear!

    Plugin Author dominic_ks

    (@dominic_ks)

    No problem, have a great week.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email received’ is closed to new replies.