feat: throw error invalid otp instead of ok
This commit is contained in:
parent
776004b5be
commit
d2d4036bcd
1 changed files with 2 additions and 2 deletions
|
|
@ -139,8 +139,8 @@ export class verificationController extends Controller {
|
||||||
});
|
});
|
||||||
|
|
||||||
return dataCustomer;
|
return dataCustomer;
|
||||||
} else {
|
|
||||||
return "OTP ไม่ถูกต้อง";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
throw new HttpError(HttpStatus.BAD_REQUEST, "Invalid OTP", "invalidOTP");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue