fix:auth enable otp

This commit is contained in:
Rama Priyanto 2025-06-07 18:15:44 +07:00
parent 289e05dcc1
commit b238d5f396
1 changed files with 9 additions and 10 deletions

View File

@ -279,17 +279,16 @@ const LoginForm = () => {
return false; return false;
} }
const msg = response?.data?.message; const msg = response?.data?.message;
onSubmit(data);
// if (msg == "Continue to setup email") { if (msg == "Continue to setup email") {
// setStep(2); setStep(2);
// } else if (msg == "Email is valid and OTP has been sent") { } else if (msg == "Email is valid and OTP has been sent") {
// setStep(3); setStep(3);
// } else if (msg == "Username & password valid") { } else if (msg == "Username & password valid") {
// onSubmit(data); onSubmit(data);
// } else { } else {
// error("Username / password incorrect"); error("Username / password incorrect");
// } }
// else { // else {
// setStep(1); // setStep(1);
// } // }