This commit is contained in:
Hillel Coren 2019-11-13 13:51:37 +02:00
parent eef3467aec
commit 86819fe01d
2 changed files with 2432 additions and 5 deletions

File diff suppressed because it is too large Load Diff

View File

@ -94,13 +94,16 @@ class AuthRepository {
];
url += '?include=${includes.join(',')}&include_static=true';
final dynamic response =
await webClient.post(url, token ?? '', data: json.encode(data));
dynamic response;
final LoginResponse loginResponse =
serializers.deserializeWith(LoginResponse.serializer, response);
if (Config.DEMO_MODE) {
response = json.decode(kAPIResponseLogin);
} else {
response =
await webClient.post(url, token ?? '', data: json.encode(data));
}
return loginResponse;
return serializers.deserializeWith(LoginResponse.serializer, response);
}
Future<LoginResponse> recoverPassword(