This commit is contained in:
Hamza-Ayed
2025-02-06 21:53:49 +03:00
parent a09bfbd646
commit 0997d9301f
10 changed files with 2425 additions and 892 deletions

View File

@@ -254,8 +254,18 @@ class RegisterController extends GetxController {
);
}
// await controller.sendSmsEgypt(phoneNumber, otp.toString());
} else {
await CRUD().sendWhatsAppAuth(phoneNumber, otp.toString());
} else if (phoneController.text.toString().length >= 10) {
box.write(BoxName.isVerified, '1');
box.write(BoxName.isFirstTime, '0'); //todo check if first or not
box.write(
BoxName.phone, encryptionHelper.encryptData(phoneController.text));
Get.put(LoginController()).loginUsingCredentials(
box.read(BoxName.passengerID).toString(),
box.read(BoxName.email).toString(),
);
// this for whatsapp messsage
// await CRUD().sendWhatsAppAuth(phoneNumber, otp.toString());
}
isLoading = false;