aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-22 23:43:49 +0300
committerBonfaceKilz2024-03-26 10:01:13 +0300
commit3f8fb6f1f1eaf0897749e3af769392fc0d2eb050 (patch)
tree766bf177f52a29f23247aea79ee80077c36debc2 /gn2/wqflask
parent1f71672c6eb57e64299afa415569ac64dcf4a152 (diff)
downloadgenenetwork2-3f8fb6f1f1eaf0897749e3af769392fc0d2eb050.tar.gz
Delete unused variable.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/oauth2/checks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn2/wqflask/oauth2/checks.py b/gn2/wqflask/oauth2/checks.py
index 5f0d1376..d4025ffd 100644
--- a/gn2/wqflask/oauth2/checks.py
+++ b/gn2/wqflask/oauth2/checks.py
@@ -17,7 +17,7 @@ def require_oauth2(func):
@wraps(func)
def __token_valid__(*args, **kwargs):
"""Check that the user is logged in and their token is valid."""
- config = current_app.config
+
def __clear_session__(_no_token):
session.clear_session_info()
flask_session.pop("oauth2_token", None)