blueprints: fix OOB email field overwriting user settings email field

closes #4317

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
Jens Langhammer 2023-01-18 19:40:47 +01:00
parent a302a72379
commit 813f70b806
No known key found for this signature in database

View file

@ -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: