Skip to content

Commit

Permalink
🐛 Set App to logged Out State if relogin did not succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
strifel committed Sep 20, 2020
1 parent 3381a02 commit 3f9d8e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ class API {
Future<_APIRequest> getAPIRequest(APIAction action) async {
if (_isLogInNeeded(action) && !_user.isLoggedIn()) {
if (!await _user.login()) {
_user.setLoginCredentials(null, null);
KAGApp.app.setLoggedOut();
return null;
}
}
Expand Down

0 comments on commit 3f9d8e3

Please sign in to comment.