aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-29 16:04:44 -0500
committerFrederick Muriuki Muriithi2024-08-05 09:52:18 -0500
commit5bbe85e1b9a1c792af824db275bbe3a63fb9910b (patch)
tree697031444fd466c40c6cb1f06670c7ac97622a18 /uploader
parente16d7750c9f1e754a3e14a496380de0b014fffe1 (diff)
downloadgn-uploader-5bbe85e1b9a1c792af824db275bbe3a63fb9910b.tar.gz
If no user is logged in, notify and redirect appropriately.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/oauth2/views.py2
1 files changed, 2 insertions, 0 deletions
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("/")