This commit is contained in:
Hamza-Ayed
2024-05-21 16:46:49 +03:00
parent 908b5979a8
commit 5fb6a706c8
17 changed files with 193 additions and 191 deletions

View File

@@ -123,7 +123,7 @@ class LoginCaptinController extends GetxController {
'id': driverID,
});
print(res);
if (res == 'failure') {
if (res == 'Failure') {
//Failure
Get.offAll(SmsSignupEgypt());
isloading = false;
@@ -135,7 +135,10 @@ class LoginCaptinController extends GetxController {
if (jsonDecoeded.isNotEmpty) {
if (jsonDecoeded['status'] == 'success' &&
jsonDecoeded['data'][0]['is_verified'] == 1) {
//
box.write(BoxName.emailDriver, jsonDecoeded['data'][0]['email']);
box.write(BoxName.phoneVerified,
jsonDecoeded['data'][0]['is_verified'].toString());
box.write(BoxName.phoneDriver, jsonDecoeded['data'][0]['phone']);
Get.off(HomeCaptain());
} else {
Get.offAll(SmsSignupEgypt());