Title: Password Reset Code
Last modified: January 10, 2022

---

# Password Reset Code

 *  [Famish](https://wordpress.org/support/users/iclicknz/)
 * (@iclicknz)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/password-reset-code/)
 * Can you tell me how I can generate a 5 digit code for the password reset code?
   Cheers

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Nicu Micle](https://wordpress.org/support/users/nicu_m/)
 * (@nicu_m)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/password-reset-code/#post-15235988)
 * Hello [@iclicknz](https://wordpress.org/support/users/iclicknz/),
 * In order to get the reset password code, you can check the documentation: [https://docs.simplejwtlogin.com/#/?id=_1-send-reset-password](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](https://docs.simplejwtlogin.com/#/?id=_2-change-password)
 * Best regards,
    Nicu.
 *  Thread Starter [Famish](https://wordpress.org/support/users/iclicknz/)
 * (@iclicknz)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/password-reset-code/#post-15238189)
 * 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](https://www.wikihow.com/images/thumb/0/0a/Reset-Your-Facebook-Password-When-You-Have-Forgotten-It-Step-19.jpg/v4-460px-Reset-Your-Facebook-Password-When-You-Have-Forgotten-It-Step-19.jpg)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Password Reset Code’ is closed to new replies.

 * ![](https://ps.w.org/simple-jwt-login/assets/icon-256x256.png?rev=2106097)
 * [Simple JWT Login – Allows you to use JWT on REST endpoints.](https://wordpress.org/plugins/simple-jwt-login/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-jwt-login/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-jwt-login/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-jwt-login/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-jwt-login/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-jwt-login/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Famish](https://wordpress.org/support/users/iclicknz/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/password-reset-code/#post-15238189)
 * Status: not resolved