Skip to content

Commit

Permalink
fix relogin logic
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisDuarte1 committed Jul 29, 2023
1 parent a38902a commit 1dfb8a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions uni/lib/controller/networking/network_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ class NetworkRouter {
NavigationService.logout();
return Future.error('Login failed');
}

session.cookies = newSession.cookies;
session
..username = newSession.username
..cookies = newSession.cookies;
headers['cookie'] = session.cookies;
return http.get(url.toUri(), headers: headers).timeout(timeout);
} else {
Expand Down

0 comments on commit 1dfb8a9

Please sign in to comment.