From 6b495498647fe833cc98a2bc5f34ca974e2c8454 Mon Sep 17 00:00:00 2001 From: Marc 'risson' Schmitt Date: Thu, 14 Dec 2023 15:32:06 +0100 Subject: [PATCH] wip Signed-off-by: Marc 'risson' Schmitt --- authentik/core/views/interface.py | 4 +--- blueprints/default/flow-default-user-settings-flow.yaml | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/authentik/core/views/interface.py b/authentik/core/views/interface.py index 7144a4a0d..03d483183 100644 --- a/authentik/core/views/interface.py +++ b/authentik/core/views/interface.py @@ -17,9 +17,7 @@ class InterfaceView(TemplateView): """Base interface view""" def get_context_data(self, **kwargs: Any) -> dict[str, Any]: - kwargs["config_json"] = dumps( - ConfigView(request=Request(self.request)).get_config(self.request).data - ) + kwargs["config_json"] = dumps(ConfigView(request=Request(self.request)).get_config().data) kwargs["brand_json"] = dumps(CurrentBrandSerializer(self.request.brand).data) kwargs["version_family"] = f"{LOCAL_VERSION.major}.{LOCAL_VERSION.minor}" kwargs["version_subdomain"] = f"version-{LOCAL_VERSION.major}-{LOCAL_VERSION.minor}" diff --git a/blueprints/default/flow-default-user-settings-flow.yaml b/blueprints/default/flow-default-user-settings-flow.yaml index e4a5d0942..ac2d79125 100644 --- a/blueprints/default/flow-default-user-settings-flow.yaml +++ b/blueprints/default/flow-default-user-settings-flow.yaml @@ -85,7 +85,6 @@ entries: model: authentik_stages_prompt.prompt - attrs: expression: | - from authentik.lib.config import CONFIG from authentik.core.models import ( USER_ATTRIBUTE_CHANGE_EMAIL, USER_ATTRIBUTE_CHANGE_NAME,