complete-node-bootcamp
complete-node-bootcamp copied to clipboard
passwordChangedAt will changed in resetPassword also in updatePassword functionality
Hi @jonasschmedtmann 👋
when we update the password of the User in authController.js, we need to change the value of the 'passwordChangedAt' field in MongoDB :100:, also in reset password functionality
finally, if you think what I say is correct leave me a comment
But I think what he did was to add it to the pre hook Middleware when the user password is modified.