From 9ba29c51446616f9f7d7c82034a070eb8706db4d Mon Sep 17 00:00:00 2001 From: Muhsin Shah C P Date: Thu, 10 Apr 2025 12:33:56 +0530 Subject: [PATCH] fixed: forget password invalid link issue (#12533) --- server/src/modules/auth/service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/modules/auth/service.ts b/server/src/modules/auth/service.ts index 5175197ceb..b67d205b5d 100644 --- a/server/src/modules/auth/service.ts +++ b/server/src/modules/auth/service.ts @@ -192,6 +192,7 @@ export class AuthService implements IAuthService { return; } const forgotPasswordToken = uuid.v4(); + await this.userRepository.updateOne(user.id, { forgotPasswordToken }); this.eventEmitter.emit('emailEvent', { type: EMAIL_EVENTS.SEND_PASSWORD_RESET_EMAIL, payload: {