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