chore(api): track password reset expiresAt timestamp

This commit is contained in:
isra el
2025-10-13 06:24:37 +03:00
parent 500d880aea
commit 6d081c7489

View File

@@ -219,6 +219,9 @@ export class AuthService {
user.password = hashedPassword
await user.save()
passwordReset.expiresAt = new Date(Date.now())
await passwordReset.save()
this.mailService.sendEmailFromTemplate({
to: user.email,
subject: 'textbee.dev - Password Reset',