From 9c58bb8b259d85ca5b583ae995c6650a088f06d3 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 11 Aug 2024 14:29:13 +0300 Subject: [PATCH] added check if OPT is verification --- 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 e17f599..2fadf6f 100644 --- a/src/auth/services/user-auth.service.ts +++ b/src/auth/services/user-auth.service.ts @@ -136,7 +136,7 @@ export class UserAuthService { } : undefined, email: data.email, - isUserVerified: true, + isUserVerified: data.type === OtpType.PASSWORD ? true : undefined, }, }); if (!userExists) {