diff --git a/authentik/stages/user_write/stage.py b/authentik/stages/user_write/stage.py index 5fb2db6f5..05f71ebe4 100644 --- a/authentik/stages/user_write/stage.py +++ b/authentik/stages/user_write/stage.py @@ -73,7 +73,9 @@ class UserWriteStageView(StageView): """Update `user` with data from plan context Only simple attributes are updated, nothing which requires a foreign key or m2m""" - data = self.executor.plan.context[PLAN_CONTEXT_PROMPT] + data: dict = self.executor.plan.context[PLAN_CONTEXT_PROMPT] + # This is always sent back but not written to the user + data.pop("component", None) for key, value in data.items(): setter_name = f"set_{key}" # Check if user has a setter for this key, like set_password