flows: fix configure_url not being set correctly User settings
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
@ -91,10 +91,10 @@ class StageViewSet(
|
|||||||
if not user_settings:
|
if not user_settings:
|
||||||
continue
|
continue
|
||||||
user_settings.initial_data["object_uid"] = str(stage.pk)
|
user_settings.initial_data["object_uid"] = str(stage.pk)
|
||||||
if hasattr(stage, "configure_url"):
|
if hasattr(stage, "configure_flow"):
|
||||||
user_settings.initial_data["configure_url"] = reverse(
|
user_settings.initial_data["configure_url"] = reverse(
|
||||||
"authentik_flows:configure",
|
"authentik_flows:configure",
|
||||||
kwargs={"stage_uuid": stage.uuid.hex},
|
kwargs={"stage_uuid": stage.pk},
|
||||||
)
|
)
|
||||||
if not user_settings.is_valid():
|
if not user_settings.is_valid():
|
||||||
LOGGER.warning(user_settings.errors)
|
LOGGER.warning(user_settings.errors)
|
||||||
|
|||||||
@ -57,7 +57,6 @@ export class UserSettingsAuthenticatorDuo extends BaseUserSettings {
|
|||||||
<div class="pf-c-card__title">
|
<div class="pf-c-card__title">
|
||||||
${t`Duo`}
|
${t`Duo`}
|
||||||
</div>
|
</div>
|
||||||
${this.renderDisabled()}
|
|
||||||
${until(new AuthenticatorsApi(DEFAULT_CONFIG).authenticatorsDuoList({}).then((devices) => {
|
${until(new AuthenticatorsApi(DEFAULT_CONFIG).authenticatorsDuoList({}).then((devices) => {
|
||||||
return devices.results.length > 0 ? this.renderEnabled() : this.renderDisabled();
|
return devices.results.length > 0 ? this.renderEnabled() : this.renderDisabled();
|
||||||
}))}
|
}))}
|
||||||
|
|||||||
Reference in New Issue
Block a user