Commit edc08403 by jay

otp

1 parent 097d774b
...@@ -126,12 +126,12 @@ const Signup = props => { ...@@ -126,12 +126,12 @@ const Signup = props => {
setOtpSent(true); setOtpSent(true);
} else { } else {
e.preventDefault(); e.preventDefault();
const oneTimePassword = otp.join("") const oneTimePassword = otp.join("");
const otpRes = await finishVendorOtpVerification({email: values.email, oneTimePassword}) const otpRes = await finishVendorOtpVerification({ email: values.email, oneTimePassword });
console.log("otpRes", otpRes); console.log("otpRes", otpRes);
if (otpRes.data.ok){ if (otpRes.data.ok) {
// router.push("/thank-you") // router.push("/thank-you")
toast.success("User registered successflly") toast.success("User registered successflly");
} }
} }
}} }}
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!