complete-node-bootcamp icon indicating copy to clipboard operation
complete-node-bootcamp copied to clipboard

passwordChangedAt will changed in resetPassword also in updatePassword functionality

Open othmanekahtal opened this issue 3 years ago • 1 comments

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

othmanekahtal avatar Jan 28 '22 21:01 othmanekahtal

But I think what he did was to add it to the pre hook Middleware when the user password is modified.

davieoba avatar Mar 12 '22 19:03 davieoba