25-2/6/1
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user