about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-06-03 16:10:01 -0500
committerFrederick Muriuki Muriithi2024-06-03 16:10:01 -0500
commit8036499cbe96543d3e1c571e241d1dd212c644a9 (patch)
treee2296a3b56d8f09bddd264c2d361ba91c2a504d4
parent4c4d91d03a873969315727918206097a0d89bb19 (diff)
downloadgenenetwork2-8036499cbe96543d3e1c571e241d1dd212c644a9.tar.gz
Ensure endpoint returns a response.
-rw-r--r--gn2/wqflask/oauth2/users.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn2/wqflask/oauth2/users.py b/gn2/wqflask/oauth2/users.py
index 8a935170..ed88aaa4 100644
--- a/gn2/wqflask/oauth2/users.py
+++ b/gn2/wqflask/oauth2/users.py
@@ -84,7 +84,8 @@ def logout():
             f"{the_session['masquerading']['name']} "
             f"({the_session['masquerading']['email']})",
             "alert-success")
-        return redirect("/")
+
+    return redirect("/")
 
 @users.route("/register", methods=["GET", "POST"])
 def register_user():