This commit is contained in:
2025-11-04 13:05:34 +05:30
5 changed files with 389 additions and 2 deletions

View File

@@ -45,8 +45,13 @@ export default function Login() {
}
try {
<<<<<<< HEAD
// await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: mobile });
await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: "7890544527" });
=======
await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: mobile });
// await sendOtp({ type: 'LOGIN_OTP', username: CIF, mobileNumber: "6297421727" });
>>>>>>> 9850e742fc9e2db185e3a73807bc3c84570153e7
notifications.show({
color: 'orange',
title: 'OTP Required',
@@ -67,8 +72,13 @@ export default function Login() {
async function handleVerifyOtp(mobile?: string) {
try {
if (mobile) {
<<<<<<< HEAD
// await verifyLoginOtp(otp, mobile);
await verifyLoginOtp(otp, '7890544527');
=======
await verifyLoginOtp(otp, mobile);
// await verifyLoginOtp(otp, '6297421727');
>>>>>>> 9850e742fc9e2db185e3a73807bc3c84570153e7
return true;
}
}
@@ -296,7 +306,7 @@ export default function Login() {
message: "Internal Server Error, Please try again later",
autoClose: 5000,
});
}
}
// finally {
// // Ensure we always stop loader if still active
// setIsLogging(false);