From 4e7bc0335cbeec0a9084d9a7d21a923f7ea7a30b Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 9 Oct 2024 15:25:48 +1100 Subject: [PATCH] fix: Refresh emails when user logs in --- server.py | 2 +- templates/inbox.html | 2 +- templates/notifications.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server.py b/server.py index 1d1445b..9b89e5d 100644 --- a/server.py +++ b/server.py @@ -95,7 +95,7 @@ def login(): # Get username and token from args token = request.args.get("token") # Set token cookie - response = make_response(redirect("/inbox")) + response = make_response(redirect("/refresh")) response.set_cookie("token", token) return response diff --git a/templates/inbox.html b/templates/inbox.html index 21e3adc..cba8ac0 100644 --- a/templates/inbox.html +++ b/templates/inbox.html @@ -12,7 +12,7 @@
-

HNS Email

{{emails.email}} | Notifications | HNS Email  {{emails.email}} | Notifications | Logout

diff --git a/templates/notifications.html b/templates/notifications.html index 14ebbb5..f7d8757 100644 --- a/templates/notifications.html +++ b/templates/notifications.html @@ -12,7 +12,7 @@
-

HNS Email

{{email}} | Inbox | HNS Email  {{email}} | Inbox | Logout