This commit is contained in:
Hamza-Ayed
2024-06-22 13:30:02 +03:00
parent 976e5dfa4d
commit 2bd242b28c
6 changed files with 21 additions and 175 deletions

View File

@@ -121,7 +121,6 @@ class RegisterController extends GetxController {
Get.offAll(const MapPagePassenger());
}
} else {
print(res);
Get.snackbar('Error'.tr, '', backgroundColor: Colors.redAccent);
}
}
@@ -150,14 +149,12 @@ class RegisterController extends GetxController {
'site': siteController.text,
'birthdate': birthDate,
});
print(jsonDecode(res));
if (jsonDecode(res)['status'] == 'success') {
print('sdfffffffffff');
int randomNumber = Random().nextInt(100000) + 1;
await CRUD().post(link: AppLink.sendVerifyEmail, payload: {
'email': emailController.text,
'token': randomNumber.toString(),
}).then((value) => print(value));
});
Get.to(() => const VerifyEmailPage());
}
}