mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-16 18:56:22 +00:00
added otp handling user
This commit is contained in:
@ -230,7 +230,7 @@ export class UserAuthService {
|
|||||||
email: data.email,
|
email: data.email,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (user) {
|
if (!user) {
|
||||||
throw new BadRequestException('this email is not registered');
|
throw new BadRequestException('this email is not registered');
|
||||||
}
|
}
|
||||||
throw new BadRequestException('You entered wrong otp');
|
throw new BadRequestException('You entered wrong otp');
|
||||||
|
Reference in New Issue
Block a user