meabhisingh / mernProjectEcommerce

This is MERN Stack Ecommerce Project Made to Teach MERN Stack on YouTube
1.17k stars 833 forks source link

Forgot password #38

Open Abhishek0943 opened 1 year ago

Abhishek0943 commented 1 year ago

In user controller forgot password function containing await user.save({ validateBeforeSave: false }); This line of code is not work and throw error undefine and number And when i comment out this line then it work properly but then :token in user route give error token expired How can i solve it

anjali9294 commented 1 year ago

your loadUser is working fine?

shubhamhere commented 1 year ago

yes

Abhishek0943 commented 1 year ago

Yes

anjali9294 commented 1 year ago

have you done react redux for user component if yes then the react component state is remain in redux devtool if you refresh the page

Abhishek0943 commented 1 year ago

I am note work on frontend i test this in postman

blackBl00d commented 1 year ago

did @Abhishek0943 did you get the solution ! Please share it, I am stuck on this for last 2 days.