diff --git a/src/auth/services/user-auth.service.ts b/src/auth/services/user-auth.service.ts index 0c95297..80be3c2 100644 --- a/src/auth/services/user-auth.service.ts +++ b/src/auth/services/user-auth.service.ts @@ -237,7 +237,7 @@ export class UserAuthService { fromNewPassword: boolean = false, ): Promise { const otp = await this.otpRepository.findOne({ - where: { email: data.email, type: data.type }, + where: { email: data.email, type: data.type, otpCode: data.otpCode }, }); if (!otp) {