fixed: forget password invalid link issue (#12533)

This commit is contained in:
Muhsin Shah C P 2025-04-10 12:33:56 +05:30 committed by GitHub
parent 89bb340999
commit 9ba29c5144
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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