From b9e2e41b7064f597d09a929e3345f9abff70601f Mon Sep 17 00:00:00 2001 From: whikernel Date: Mon, 16 Dec 2024 08:25:17 +0100 Subject: [PATCH] [FIX] Logout of users in local auth --- source/app/blueprints/dashboard/dashboard_routes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/app/blueprints/dashboard/dashboard_routes.py b/source/app/blueprints/dashboard/dashboard_routes.py index 4385ac92c..31379d921 100644 --- a/source/app/blueprints/dashboard/dashboard_routes.py +++ b/source/app/blueprints/dashboard/dashboard_routes.py @@ -86,7 +86,7 @@ def logout(): try: logout_request = oidc_client.construct_EndSessionRequest(state=session["oidc_state"]) logout_url = logout_request.request(oidc_client.provider_info["end_session_endpoint"]) - track_activity("user '{}' has been logged-out".format(current_user.user), ctx_less=True, display_in_ui=False) + track_activity("user '{}' is being logged out".format(current_user.user), ctx_less=True, display_in_ui=False) logout_user() session.clear() return redirect(logout_url) @@ -100,7 +100,7 @@ def logout(): log.error(f"Error logging out: {e}") log.warning(f'Will continue to local logout') - track_activity("user '{}' is being logged-out".format(current_user.user), ctx_less=True, display_in_ui=False) + track_activity("user '{}' is being logged out".format(current_user.user), ctx_less=True, display_in_ui=False) logout_user() session.clear()