|
|
|
@ -200,8 +200,6 @@ class AuthenticationRepoImp implements AuthenticationRepo {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
@override
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> checkActivationCodeRepo(
|
|
|
|
Future<Either<Failure, GenericApiModel<dynamic>>> checkActivationCodeRepo(
|
|
|
|
{required dynamic newRequest, // could be CheckActivationCodeReq or CheckActivationCodeRegisterReq
|
|
|
|
{required dynamic newRequest, // could be CheckActivationCodeReq or CheckActivationCodeRegisterReq
|
|
|
|
@ -280,7 +278,6 @@ class AuthenticationRepoImp implements AuthenticationRepo {
|
|
|
|
newRequest.logInTokenID = null;
|
|
|
|
newRequest.logInTokenID = null;
|
|
|
|
newRequest.deviceToken = null;
|
|
|
|
newRequest.deviceToken = null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> familyRequest = {};
|
|
|
|
Map<String, dynamic> familyRequest = {};
|
|
|
|
@ -315,13 +312,9 @@ class AuthenticationRepoImp implements AuthenticationRepo {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (appState.getSuperUserID == responseID) {
|
|
|
|
if (appState.getSuperUserID == responseID) {
|
|
|
|
// switchRequest['LoginType'] = 0;
|
|
|
|
switchRequest['LoginType'] = loginType;
|
|
|
|
switchRequest['PatientIdentificationID'] = "";
|
|
|
|
switchRequest['PatientIdentificationID'] = "";
|
|
|
|
// switchRequest["PatientID"] = responseID;
|
|
|
|
switchRequest['DeviceToken'] = newRequest.deviceToken;
|
|
|
|
// switchRequest["SuperUser"] = responseID;
|
|
|
|
|
|
|
|
// switchRequest["PatientID"] = appState.getAuthenticatedUser()?.patientId ?? 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// switchRequest["PatientMobileNumber"] = newRequest.patientMobileNumber?.toString().startsWith('0') == true ? newRequest.patientMobileNumber.toString() : '0${newRequest.patientMobileNumber}';
|
|
|
|
|
|
|
|
switchRequest.removeWhere((key, value) => ['NationalID', 'isDentalAllowedBackend', 'ProjectOutSA', 'ForRegisteration'].contains(key));
|
|
|
|
switchRequest.removeWhere((key, value) => ['NationalID', 'isDentalAllowedBackend', 'ProjectOutSA', 'ForRegisteration'].contains(key));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|