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;
}
const msg = response?.data?.message;
onSubmit(data);
// if (msg == "Continue to setup email") {
// setStep(2);
// } else if (msg == "Email is valid and OTP has been sent") {
// setStep(3);
// } else if (msg == "Username & password valid") {
// onSubmit(data);
// } else {
// error("Username / password incorrect");
// }
if (msg == "Continue to setup email") {
setStep(2);
} else if (msg == "Email is valid and OTP has been sent") {
setStep(3);
} else if (msg == "Username & password valid") {
onSubmit(data);
} else {
error("Username / password incorrect");
}
// else {
// setStep(1);
// }