From 3f62d5d3e86f3b52488fb50ec00c88f77d03ab27 Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Wed, 18 Sep 2024 16:10:54 +0300 Subject: Refactor: drop __clear_session__ function. --- gn2/wqflask/oauth2/checks.py | 5 ----- 1 file changed, 5 deletions(-) (limited to 'gn2') 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 -- cgit v1.2.3