8-15/4
This commit is contained in:
@@ -69,7 +69,7 @@ class RegisterController extends GetxController {
|
||||
|
||||
void register() async {
|
||||
if (formKey.currentState!.validate()) {
|
||||
await CRUD().post(link: AppLink.signUp, payload: {
|
||||
var res = await CRUD().post(link: AppLink.signUp, payload: {
|
||||
'first_name': firstNameController.text,
|
||||
'last_name': lastNameController.text,
|
||||
'email': emailController.text,
|
||||
@@ -78,13 +78,17 @@ class RegisterController extends GetxController {
|
||||
'gender': gender,
|
||||
'site': siteController.text,
|
||||
'birthdate': birthDate,
|
||||
}).then((value) => print(value));
|
||||
});
|
||||
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());
|
||||
}
|
||||
}
|
||||
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