mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-11-26 19:54:54 +00:00
otp fix
This commit is contained in:
@ -237,7 +237,7 @@ export class UserAuthService {
|
||||
fromNewPassword: boolean = false,
|
||||
): Promise<boolean> {
|
||||
const otp = await this.otpRepository.findOne({
|
||||
where: { email: data.email, type: data.type },
|
||||
where: { email: data.email, type: data.type, otpCode: data.otpCode },
|
||||
});
|
||||
|
||||
if (!otp) {
|
||||
|
||||
Reference in New Issue
Block a user