From 1dfb8a97759857a2af4283a334ce2ba8725a1c00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Duarte?= Date: Sat, 29 Jul 2023 15:24:44 +0100 Subject: [PATCH] fix relogin logic --- uni/lib/controller/networking/network_router.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uni/lib/controller/networking/network_router.dart b/uni/lib/controller/networking/network_router.dart index bfe757514..b2fd02ba8 100644 --- a/uni/lib/controller/networking/network_router.dart +++ b/uni/lib/controller/networking/network_router.dart @@ -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 {