|
|
|
|
@ -363,7 +363,7 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
// TODO: GET APP SMS SIGNATURE HERE
|
|
|
|
|
request.sMSSignature =await getSignature();
|
|
|
|
|
request.sMSSignature = await getSignature();
|
|
|
|
|
|
|
|
|
|
if (checkIsUserComingForRegister(request: payload)) {
|
|
|
|
|
_appState.setUserRegistrationPayload = RegistrationDataModelPayload.fromJson(payload);
|
|
|
|
|
@ -617,8 +617,8 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
} else {
|
|
|
|
|
// authenticated = true;
|
|
|
|
|
await insertPatientIMEIData(loginTypeEnum.toInt);
|
|
|
|
|
}
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
}
|
|
|
|
|
notifyListeners();
|
|
|
|
|
// navigateToHomeScreen();
|
|
|
|
|
} else {
|
|
|
|
|
@ -873,6 +873,7 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
getDeviceLastLogin = deviceInfo.first['LoginType'];
|
|
|
|
|
await checkActivationCode(otpTypeEnum: OTPTypeEnum.faceIDFingerprint, activationCode: null, onWrongActivationCode: (String? message) {});
|
|
|
|
|
await insertPatientIMEIData(loginTypeEnum.toInt);
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
}
|
|
|
|
|
if (apiResponse.messageStatus == 2) {
|
|
|
|
|
LoaderBottomSheet.hideLoader();
|
|
|
|
|
@ -937,6 +938,7 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<String?> getSignature() async {
|
|
|
|
|
if (Platform.isAndroid) {
|
|
|
|
|
return await SmsVerification.getAppSignature();
|
|
|
|
|
@ -944,5 +946,4 @@ class AuthenticationViewModel extends ChangeNotifier {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|