debugging logout

This commit is contained in:
Felix 2019-07-15 15:16:21 +01:00
parent 2eead22967
commit 3af4908d5f

View file

@ -8,7 +8,7 @@ import 'package:local_spend/common/functions/save_logout.dart';
import 'package:local_spend/model/json/login_model.dart';
Future<LoginModel> requestLogoutAPI(BuildContext context) async {
final url = "https://www.yoururl.com/logout";
final url = "https://dev.peartrade.org/api/logout";
var token;
@ -25,6 +25,8 @@ Future<LoginModel> requestLogoutAPI(BuildContext context) async {
saveLogout();
return null;
} else {
debugPrint("Logout unsuccessful: " + response.body);
saveLogout();
return null;
}