From 5bbe85e1b9a1c792af824db275bbe3a63fb9910b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 29 Jul 2024 16:04:44 -0500 Subject: If no user is logged in, notify and redirect appropriately. --- uploader/oauth2/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/uploader/oauth2/views.py b/uploader/oauth2/views.py index 40211c8..6e1ce29 100644 --- a/uploader/oauth2/views.py +++ b/uploader/oauth2/views.py @@ -133,3 +133,5 @@ def logout(): cleanup_thunk=lambda: __unset_session__( session.session_info())), lambda res: __unset_session__(session.session_info())) + flash("There is no user that is currently logged in.", "alert-info") + return redirect("/") -- cgit v1.2.3