UPDATE: fix buyg+

This commit is contained in:
2026-05-08 11:17:17 +07:00
parent ce4bc4f2a5
commit 6f163c3730
4 changed files with 9 additions and 8 deletions
@@ -42,7 +42,7 @@ export default function ResetPasswordForm() {
try {
setLoading(true);
await apiCreateOTP(email);
await apiCreateOTP(email, 1);
toast.success("Mã OTP đã được gửi đến email của bạn!");
setStep(2);
} catch (error) {
@@ -69,7 +69,7 @@ export default function ResetPasswordForm() {
try {
setLoading(true);
const verifyRes = await apiVerifyOTP(email, otp);
const verifyRes = await apiVerifyOTP(email, otp, 1);
const tokenId = verifyRes?.data?.token_id;
if (!tokenId) {