From 813f70b806ad49c22ab827438cc2142a28c10547 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 18 Jan 2023 19:40:47 +0100 Subject: [PATCH] blueprints: fix OOB email field overwriting user settings email field closes #4317 Signed-off-by: Jens Langhammer --- blueprints/default/91-flow-oobe.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/blueprints/default/91-flow-oobe.yaml b/blueprints/default/91-flow-oobe.yaml index f07d0c0d3..296778e05 100644 --- a/blueprints/default/91-flow-oobe.yaml +++ b/blueprints/default/91-flow-oobe.yaml @@ -33,7 +33,7 @@ entries: type: email id: prompt-field-email identifiers: - field_key: email + field_key: admin_email label: Email model: authentik_stages_prompt.prompt - attrs: @@ -66,6 +66,8 @@ entries: # by injecting "pending_user" akadmin = ak_user_by(username="akadmin") context["flow_plan"].context["pending_user"] = akadmin + # Remap the email value + context["prompt_data"]["email"] = context["prompt_data"]["admin_email"] return True id: policy-default-oobe-prefill-user identifiers: