Merge pull request #96 from SyncrowIOT/feature/otp-config

added otp handling user
This commit is contained in:
yousef-khriasat-uba
2024-09-12 16:32:59 +03:00
committed by GitHub

View File

@ -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');