|
|
|
|
@ -655,9 +655,9 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
await LoginApiClient().checkMobileAppVersion();
|
|
|
|
|
await LoginApiClient().memberLogin(AppState().username!, AppState().password!);
|
|
|
|
|
await LoginApiClient().memberLogin(AppState().getUserName!, AppState().password!);
|
|
|
|
|
BasicMemberInformationModel? memberInformationModel = await LoginApiClient().mohemmSendActivationCodeByOTPNotificationType(
|
|
|
|
|
checkBiometricIsAvailable(BiometricType.fingerprint) ? 1 : 0, AppState().memberLoginList?.pMOBILENUMBER, _flag, AppState().username);
|
|
|
|
|
checkBiometricIsAvailable(BiometricType.fingerprint) ? 1 : 0, AppState().memberLoginList?.pMOBILENUMBER, _flag, AppState().getUserName);
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
OtpDialog(
|
|
|
|
|
context,
|
|
|
|
|
@ -666,14 +666,14 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
|
(value) async {
|
|
|
|
|
Utils.showLoading(context);
|
|
|
|
|
try {
|
|
|
|
|
GenericResponseModel? genericResponseModel = await LoginApiClient().checkActivationCode(false, AppState().memberLoginList?.pMOBILENUMBER, value, AppState().username);
|
|
|
|
|
GenericResponseModel? genericResponseModel = await LoginApiClient().checkActivationCode(false, AppState().memberLoginList?.pMOBILENUMBER, value, AppState().getUserName);
|
|
|
|
|
GenericResponseModel? genericResponseModel1 = await LoginApiClient().insertMobileLoginInfoNEW(
|
|
|
|
|
AppState().memberLoginList?.pEMAILADDRESS ?? "",
|
|
|
|
|
genericResponseModel?.pSESSIONID ?? 0,
|
|
|
|
|
genericResponseModel?.memberInformationList![0].eMPLOYEENAME ?? "",
|
|
|
|
|
_flag,
|
|
|
|
|
AppState().memberLoginList?.pMOBILENUMBER ?? "",
|
|
|
|
|
AppState().username!,
|
|
|
|
|
AppState().getUserName!,
|
|
|
|
|
firebaseToken!,
|
|
|
|
|
Platform.isAndroid ? "android" : "ios");
|
|
|
|
|
if (genericResponseModel?.errorMessage != null) {
|
|
|
|
|
@ -683,7 +683,7 @@ class _VerifyLoginScreenState extends State<VerifyLoginScreen> {
|
|
|
|
|
AppState().setMemberInformationListModel = genericResponseModel.memberInformationList?.first;
|
|
|
|
|
MemberInformationListModel.saveToPrefs(genericResponseModel.memberInformationList ?? []);
|
|
|
|
|
PrivilegeListModel.saveToPrefs(genericResponseModel.privilegeList ?? []);
|
|
|
|
|
Utils.saveStringFromPrefs(SharedPrefsConsts.username, AppState().username!);
|
|
|
|
|
Utils.saveStringFromPrefs(SharedPrefsConsts.username, AppState().getUserName!);
|
|
|
|
|
Utils.saveStringFromPrefs(SharedPrefsConsts.password, AppState().password!);
|
|
|
|
|
}
|
|
|
|
|
Utils.hideLoading(context);
|
|
|
|
|
|