Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nicu Micle

    (@nicu_m)

    Hello @iclicknz,

    In order to get the reset password code, you can check the documentation: https://docs.simplejwtlogin.com/#/?id=_1-send-reset-password

    In order to get the code, you have 2 options:
    – Do not send any email, just save reset code in the database: The code will be added in the database, and you can retrieve it from there
    – Send the default WordPress reset password email or Send custom email : This way, your user will receive an email, with the reset code.

    Also, If you don’t have the code, you have the option to change the password with a valid JWT. In order to do this, you need to check the option “Allow Reset password with JWT ” from plugin settings-> Reset Password. After that, instead of the code parameter, you can send the JWT as &JWT=your_jwt. This way, you will be able to change the user password.
    See Example here: https://docs.simplejwtlogin.com/#/?id=_2-change-password

    Best regards,
    Nicu.

    Thread Starter Famish

    (@iclicknz)

    Thanks for your quick reply, I was able to set up everything as instructed and the functions are working perfectly.

    The reset code sent is a randomly generated code, I was wondering how I can change the code to a more readable format like 4-6 digits. Example Image

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Password Reset Code’ is closed to new replies.