This commit is contained in:
Hamza-Ayed
2023-11-19 11:53:25 +03:00
parent 8e835f8c93
commit 63a6420531
18 changed files with 766 additions and 384 deletions

View File

@@ -61,8 +61,8 @@ class RegisterController extends GetxController {
'email': emailController.text,
'token': verfyCode.text,
});
if (jsonDecode(res)['status'] == 'success') {
var dec = jsonDecode(res);
if (dec['status'] == 'success') {
Get.offAll(() => LoginPage());
}
}
@@ -87,7 +87,7 @@ class RegisterController extends GetxController {
'email': emailController.text,
'token': randomNumber.toString(),
}).then((value) => print(value));
Get.to(() => const VerifyEmailPage());
Get.to(() => VerifyEmailPage());
}
}
}