aboutsummaryrefslogtreecommitdiff
path: root/gn2
diff options
context:
space:
mode:
authorAlexander_Kabui2024-09-18 16:10:54 +0300
committerAlexander_Kabui2024-09-18 16:10:54 +0300
commit3f62d5d3e86f3b52488fb50ec00c88f77d03ab27 (patch)
tree8093ddd9d068eeb061d88ef8df5cc202d3ef50e7 /gn2
parent88eae5f263bc816384fd124f06a28633ee8180ce (diff)
downloadgenenetwork2-3f62d5d3e86f3b52488fb50ec00c88f77d03ab27.tar.gz
Refactor: drop __clear_session__ function.
Diffstat (limited to 'gn2')
-rw-r--r--gn2/wqflask/oauth2/checks.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/gn2/wqflask/oauth2/checks.py b/gn2/wqflask/oauth2/checks.py
index 8a6e439e..38e7e22f 100644
--- a/gn2/wqflask/oauth2/checks.py
+++ b/gn2/wqflask/oauth2/checks.py
@@ -21,11 +21,6 @@ def require_oauth2(func):
@wraps(func)
def __token_valid__(*args, **kwargs):
"""Check that the user is logged in and their token is valid."""
- def __clear_session__(_no_token):
- session.clear_session_info()
- flash("You need to be logged in.", "alert-warning")
- return redirect("/")
-
def __redirect_to_login__(_token):
"""
Save the current user request to session then