fix:auth enable otp
This commit is contained in:
parent
289e05dcc1
commit
b238d5f396
|
|
@ -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);
|
||||||
// }
|
// }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue