remove is Auth for test target

pull/197/head
Elham Rababah 5 years ago
parent 26a25f44e0
commit 18d58e7037

@ -80,12 +80,12 @@ class BaseAppClient {
onFailure('Error While Fetching data', statusCode);
} else {
var parsed = json.decode(response.body.toString());
if (!parsed['IsAuthenticated']) {
// TODO: return it back when IsAuthenticated work fine in all service
// await helpers.logout();
helpers.showErrorToast('Your session expired Please login agian');
} else
// if (!parsed['IsAuthenticated']) {
// // TODO: return it back when IsAuthenticated work fine in all service
// // await helpers.logout();
//
// helpers.showErrorToast('Your session expired Please login agian');
// } else
if (parsed['MessageStatus'] == 1) {
onSuccess(parsed, statusCode);
} else {
@ -93,9 +93,8 @@ class BaseAppClient {
parsed['ErrorEndUserMessage'] ?? parsed['ErrorMessage'];
if (parsed["ValidationErrors"] != null) {
// TODO : return it back after check the StatusMessage it not null
// error =
// parsed["ValidationErrors"]["StatusMessage"].toString() + "\n";
error =
parsed["ValidationErrors"]["StatusMessage"].toString() + "\n";
if (parsed["ValidationErrors"]["ValidationErrors"] != null &&
parsed["ValidationErrors"]["ValidationErrors"].length != 0) {

Loading…
Cancel
Save