Forgot password
Opened this issue · 6 comments
Abhishek0943 commented
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
your loadUser is working fine?
shubhamhere commented
yes
Abhishek0943 commented
Yes
anjali9294 commented
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
I am note work on frontend i test this in postman
blackBl00d commented
did @Abhishek0943 did you get the solution ! Please share it, I am stuck on this for last 2 days.