From 5cc43898256b130c2576f34a3d4e7ce6a3940d3e Mon Sep 17 00:00:00 2001 From: Gauthier Date: Wed, 24 Jul 2024 15:44:10 +0200 Subject: [PATCH] fix(api): save new password when reset password of local account (#886) --- server/routes/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/routes/auth.ts b/server/routes/auth.ts index 3b0d7e382..a473522fa 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -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',