Skip to content

Commit

Permalink
fix(api): save new password when reset password of local account (#886)
Browse files Browse the repository at this point in the history
  • Loading branch information
gauthier-th authored Jul 24, 2024
1 parent dd6dbf1 commit 5cc4389
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/routes/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -730,6 +730,7 @@ authRoutes.post('/reset-password/:guid', async (req, res, next) => {
});
}
user.recoveryLinkExpirationDate = null;
await user.setPassword(req.body.password);
userRepository.save(user);
logger.info('Successfully reset password', {
label: 'API',
Expand Down

0 comments on commit 5cc4389

Please sign in to comment.