This commit is contained in:
Hamza-Ayed
2023-08-17 17:07:27 +03:00
parent ceced0735c
commit 6635a46933
11 changed files with 418 additions and 186 deletions

View File

@@ -64,6 +64,7 @@ class LoginController extends GetxController {
box.write(BoxName.pasengerID, jsonDecoeded['data'][0]['id']);
box.write(BoxName.email, jsonDecoeded['data'][0]['email']);
box.write(BoxName.phone, jsonDecoeded['data'][0]['phone']);
saveData(BoxName.passwoerd, passwordController.text);
Get.offAll(() => MapPage());
isloading = false;
update();

View File

@@ -62,9 +62,9 @@ class RegisterController extends GetxController {
'token': verfyCode.text,
});
// if (jsondecod['status'] == 'success') {
Get.offAll(() => const MapPage());
// }
if (jsonDecode(res)['status'] == 'success') {
Get.offAll(() => const MapPage());
}
}
void register() async {