Skip to content

Commit

Permalink
Fix updating lastUpdated Field
Browse files Browse the repository at this point in the history
  • Loading branch information
pacifiquemboni committed Jul 23, 2024
1 parent b256136 commit 5addb6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/controllers/userControllers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -698,6 +698,7 @@ export async function resetPassword(
user.password = hashedPassword;
user.resetPasswordToken = undefined;
user.resetPasswordExpires = undefined;
user.passwordLastChanged = new Date();

await user.save();

Expand Down

0 comments on commit 5addb6a

Please sign in to comment.