Skip to content

Commit

Permalink
Fix relogin logic (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
thePeras authored Jul 29, 2023
2 parents a2a53aa + 0c208a7 commit 949d0e2
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 @@ -141,8 +141,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 949d0e2

Please sign in to comment.