From 019e777f609c5b831d67088218636d7cd959c03e Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 31 Oct 2024 09:14:18 +0300 Subject: [PATCH] otp fix --- src/auth/services/user-auth.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {