8-17/1
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user