|
|
|
@ -53,7 +53,7 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
_authenticationRepo = authenticationRepo,
|
|
|
|
_authenticationRepo = authenticationRepo,
|
|
|
|
_localAuthService = localAuthService;
|
|
|
|
_localAuthService = localAuthService;
|
|
|
|
|
|
|
|
|
|
|
|
final TextEditingController nationalIdController = TextEditingController(), phoneNumberController = TextEditingController(), dobController = TextEditingController();
|
|
|
|
final TextEditingController nationalIdController = TextEditingController(), phoneNumberController = TextEditingController(), dobController = TextEditingController(), nameController = TextEditingController(), emailController = TextEditingController();
|
|
|
|
CountryEnum selectedCountrySignup = CountryEnum.saudiArabia;
|
|
|
|
CountryEnum selectedCountrySignup = CountryEnum.saudiArabia;
|
|
|
|
MaritalStatusTypeEnum? maritalStatus;
|
|
|
|
MaritalStatusTypeEnum? maritalStatus;
|
|
|
|
GenderTypeEnum? genderType;
|
|
|
|
GenderTypeEnum? genderType;
|
|
|
|
@ -543,7 +543,7 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Future<void> onRegisterPress({required OTPTypeEnum otpTypeEnum}) async {
|
|
|
|
Future<void> onRegistrationStart({required OTPTypeEnum otpTypeEnum}) async {
|
|
|
|
bool isOutSidePatient = selectedCountrySignup.countryCode == CountryEnum.unitedArabEmirates.countryCode ? true : false;
|
|
|
|
bool isOutSidePatient = selectedCountrySignup.countryCode == CountryEnum.unitedArabEmirates.countryCode ? true : false;
|
|
|
|
|
|
|
|
|
|
|
|
final request = await RequestUtils.getPatientAuthenticationRequest(
|
|
|
|
final request = await RequestUtils.getPatientAuthenticationRequest(
|
|
|
|
@ -574,6 +574,20 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future<void> onRegistrationComplete() async{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if (emailAddress.text.isEmpty) {
|
|
|
|
|
|
|
|
// Utils.showErrorToast(TranslationBase.of(context).enterEmailAddress);
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
// Navigator.of(context).pop();
|
|
|
|
|
|
|
|
// registerNow();
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//authVM!.clearDefaultInputValues();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Future<void> checkUserStatusForRegistration({required dynamic response, required dynamic request}) async {
|
|
|
|
Future<void> checkUserStatusForRegistration({required dynamic response, required dynamic request}) async {
|
|
|
|
if (response is Map) {
|
|
|
|
if (response is Map) {
|
|
|
|
_appState.setAppAuthToken = response["LogInTokenID"];
|
|
|
|
_appState.setAppAuthToken = response["LogInTokenID"];
|
|
|
|
|