Merge pull request #76 from SyncrowIOT/SP-340-implement-send-otp-endpoint

added check if OPT is verification
This commit is contained in:
yousef-khriasat-uba
2024-08-11 14:33:10 +03:00
committed by GitHub

View File

@ -148,7 +148,7 @@ export class UserAuthService {
} }
: undefined, : undefined,
email: data.email, email: data.email,
isUserVerified: true, isUserVerified: data.type === OtpType.PASSWORD ? true : undefined,
}, },
}); });
if (!userExists) { if (!userExists) {