stages/otp_: fix flows having no title
This commit is contained in:
parent
84da454612
commit
d278acb83b
|
@ -18,7 +18,10 @@ def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEdito
|
||||||
flow, _ = Flow.objects.using(db_alias).update_or_create(
|
flow, _ = Flow.objects.using(db_alias).update_or_create(
|
||||||
slug="default-otp-static-configure",
|
slug="default-otp-static-configure",
|
||||||
designation=FlowDesignation.STAGE_CONFIGURATION,
|
designation=FlowDesignation.STAGE_CONFIGURATION,
|
||||||
defaults={"name": "Setup Static OTP Tokens"},
|
defaults={
|
||||||
|
"name": "default-otp-static-configure",
|
||||||
|
"title": "Setup Static OTP Tokens",
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
stage, _ = OTPStaticStage.objects.using(db_alias).update_or_create(
|
stage, _ = OTPStaticStage.objects.using(db_alias).update_or_create(
|
|
@ -19,7 +19,10 @@ def create_default_setup_flow(apps: Apps, schema_editor: BaseDatabaseSchemaEdito
|
||||||
flow, _ = Flow.objects.using(db_alias).update_or_create(
|
flow, _ = Flow.objects.using(db_alias).update_or_create(
|
||||||
slug="default-otp-time-configure",
|
slug="default-otp-time-configure",
|
||||||
designation=FlowDesignation.STAGE_CONFIGURATION,
|
designation=FlowDesignation.STAGE_CONFIGURATION,
|
||||||
defaults={"name": "Setup Two-Factor authentication"},
|
defaults={
|
||||||
|
"name": "default-otp-time-configure",
|
||||||
|
"title": "Setup Two-Factor authentication",
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
stage, _ = OTPTimeStage.objects.using(db_alias).update_or_create(
|
stage, _ = OTPTimeStage.objects.using(db_alias).update_or_create(
|
||||||
|
|
Reference in a new issue