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: {