Handle invalid login
This commit is contained in:
parent
ffaef5d5aa
commit
cd92f927a7
|
|
@ -177,11 +177,14 @@ void _checkResponse(http.Response response) {
|
|||
|
||||
final version = response.headers['X-APP-VERSION'];
|
||||
|
||||
/*
|
||||
if (version == null) {
|
||||
//throw 'Invalid version, please check v5 is installed on the server';
|
||||
} else if (!_isVersionSupported(version)) {
|
||||
throw 'Invalid version, please check v5 is installed on the server';
|
||||
} else if (version != null && !_isVersionSupported(version)) {
|
||||
throw 'The minimum web app version is v$kMinMajorAppVersion.$kMinMinorAppVersion.$kMinPatchAppVersion';
|
||||
} else if (response.statusCode >= 400) {
|
||||
} else */
|
||||
|
||||
if (response.statusCode >= 400) {
|
||||
print('==== FAILED ====');
|
||||
throw _parseError(response.statusCode, response.body);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -17,11 +17,11 @@
|
|||
"platform": "itunes",
|
||||
"url": "https://testflight.apple.com/join/MJ6WpaXh"
|
||||
}
|
||||
]
|
||||
],
|
||||
"icons": [
|
||||
{
|
||||
"src": "images/logo.png",
|
||||
"sizes": "397x397",
|
||||
"sizes": "512x512",
|
||||
"type": "image/png"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue