added otp handling user

This commit is contained in:
unknown
2024-09-12 16:32:26 +03:00
parent 21d31538be
commit eebb676dc8

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