From eebb676dc8fb3e4ea6ddc55a0e76cc40f02b482f Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 12 Sep 2024 16:32:26 +0300 Subject: [PATCH] added otp handling user --- 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 976731b..e709a51 100644 --- a/src/auth/services/user-auth.service.ts +++ b/src/auth/services/user-auth.service.ts @@ -230,7 +230,7 @@ export class UserAuthService { email: data.email, }, }); - if (user) { + if (!user) { throw new BadRequestException('this email is not registered'); } throw new BadRequestException('You entered wrong otp');