fix validasi otp
This commit is contained in:
parent
dbc5a396e5
commit
75f8485dd9
|
|
@ -149,6 +149,7 @@ const LoginForm = () => {
|
||||||
console.log("PROFILE : ", profile?.data?.data);
|
console.log("PROFILE : ", profile?.data?.data);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
profile?.data?.data?.isInternational == true ||
|
||||||
profile?.data?.data?.isActive == false ||
|
profile?.data?.data?.isActive == false ||
|
||||||
profile?.data?.data?.isDelete == true
|
profile?.data?.data?.isDelete == true
|
||||||
) {
|
) {
|
||||||
|
|
@ -224,8 +225,6 @@ const LoginForm = () => {
|
||||||
Number(profile?.data?.data?.roleId) == 10 ||
|
Number(profile?.data?.data?.roleId) == 10 ||
|
||||||
Number(profile?.data?.data?.roleId) == 11 ||
|
Number(profile?.data?.data?.roleId) == 11 ||
|
||||||
Number(profile?.data?.data?.roleId) == 12 ||
|
Number(profile?.data?.data?.roleId) == 12 ||
|
||||||
Number(profile?.data?.data?.roleId) == 14 ||
|
|
||||||
Number(profile?.data?.data?.roleId) == 15 ||
|
|
||||||
Number(profile?.data?.data?.roleId) == 18 ||
|
Number(profile?.data?.data?.roleId) == 18 ||
|
||||||
Number(profile?.data?.data?.roleId) == 19
|
Number(profile?.data?.data?.roleId) == 19
|
||||||
) {
|
) {
|
||||||
|
|
@ -282,17 +281,17 @@ const LoginForm = () => {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const msg = response?.data?.message;
|
const msg = response?.data?.message;
|
||||||
onSubmit(data);
|
// 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