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:
parent
a302a72379
commit
813f70b806
|
@ -33,7 +33,7 @@ entries:
|
||||||
type: email
|
type: email
|
||||||
id: prompt-field-email
|
id: prompt-field-email
|
||||||
identifiers:
|
identifiers:
|
||||||
field_key: email
|
field_key: admin_email
|
||||||
label: Email
|
label: Email
|
||||||
model: authentik_stages_prompt.prompt
|
model: authentik_stages_prompt.prompt
|
||||||
- attrs:
|
- attrs:
|
||||||
|
@ -66,6 +66,8 @@ entries:
|
||||||
# by injecting "pending_user"
|
# by injecting "pending_user"
|
||||||
akadmin = ak_user_by(username="akadmin")
|
akadmin = ak_user_by(username="akadmin")
|
||||||
context["flow_plan"].context["pending_user"] = akadmin
|
context["flow_plan"].context["pending_user"] = akadmin
|
||||||
|
# Remap the email value
|
||||||
|
context["prompt_data"]["email"] = context["prompt_data"]["admin_email"]
|
||||||
return True
|
return True
|
||||||
id: policy-default-oobe-prefill-user
|
id: policy-default-oobe-prefill-user
|
||||||
identifiers:
|
identifiers:
|
||||||
|
|
Reference in a new issue