Skip to content

Secure and Encrypted Password Reset API for Client 2/n : Setting up token and user models#38

Merged
A-HK merged 4 commits intoTech-Matrix:mainfrom
vedanthv:password-reset-models
Sep 30, 2021
Merged

Secure and Encrypted Password Reset API for Client 2/n : Setting up token and user models#38
A-HK merged 4 commits intoTech-Matrix:mainfrom
vedanthv:password-reset-models

Conversation

@vedanthv
Copy link
Contributor

@vedanthv vedanthv commented Sep 28, 2021

Issue Number

Related to #33

Describe the changes you've made

  • db.js and index.js connected to the models
  • token model will have an expiry time of about 1 hour. Within this period, the user is expected to complete the password reset process, otherwise the token will be deleted from the database
  • The user model will describe how the user data will be saved. I have used bcrypt for hashing with salt 10 for high security.

Describe if there is any unusual behaviour of your code ( Write NA if there isn't )

NA testing can be done with Postman

Test plan ( Optional but Recommended )

Testing can be done with Postman

Checklist

  • My code follows the code style of this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • The title of my pull request is a short description of the requested changes.

@A-HK
Copy link
Member

A-HK commented Sep 30, 2021

Keep contributing @vedanthv !

@A-HK A-HK merged commit 017c5d8 into Tech-Matrix:main Sep 30, 2021
@A-HK A-HK added the level2 label Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants