diff options
author | Frederick Muriuki Muriithi | 2024-07-29 16:04:44 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-05 09:52:18 -0500 |
commit | 5bbe85e1b9a1c792af824db275bbe3a63fb9910b (patch) | |
tree | 697031444fd466c40c6cb1f06670c7ac97622a18 /uploader/oauth2 | |
parent | e16d7750c9f1e754a3e14a496380de0b014fffe1 (diff) | |
download | gn-uploader-5bbe85e1b9a1c792af824db275bbe3a63fb9910b.tar.gz |
If no user is logged in, notify and redirect appropriately.
Diffstat (limited to 'uploader/oauth2')
-rw-r--r-- | uploader/oauth2/views.py | 2 |
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("/") |