stages/*: fix redirects not pointing to user_settings
This commit is contained in:
parent
01548c5e9c
commit
6e55431d4c
|
@ -22,7 +22,7 @@
|
||||||
</ul>
|
</ul>
|
||||||
{% if not state %}
|
{% if not state %}
|
||||||
{% if stage.configure_flow %}
|
{% if stage.configure_flow %}
|
||||||
<a href="{% url 'authentik_flows:configure' stage_uuid=stage.stage_uuid %}?next={{ request.get_full_path }}" class="ak-root-link pf-c-button pf-m-primary">{% trans "Enable Static Tokens" %}</a>
|
<a href="{% url 'authentik_flows:configure' stage_uuid=stage.stage_uuid %}?next={% url 'authentik_core:user-settings' %}" class="ak-root-link pf-c-button pf-m-primary">{% trans "Enable Static Tokens" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url 'authentik_stages_otp_static:disable' stage_uuid=stage.stage_uuid %}" class="ak-root-pf-c-button pf-m-danger">{% trans "Disable Static Tokens" %}</a>
|
<a href="{% url 'authentik_stages_otp_static:disable' stage_uuid=stage.stage_uuid %}" class="ak-root-pf-c-button pf-m-danger">{% trans "Disable Static Tokens" %}</a>
|
||||||
|
|
|
@ -41,4 +41,4 @@ class DisableView(LoginRequiredMixin, View):
|
||||||
Event.new(
|
Event.new(
|
||||||
"static_otp_disable", message="User disabled Static OTP Tokens."
|
"static_otp_disable", message="User disabled Static OTP Tokens."
|
||||||
).from_http(request)
|
).from_http(request)
|
||||||
return redirect("authentik_stages_otp:otp-user-settings")
|
return redirect("authentik_core:user-settings")
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<p>
|
<p>
|
||||||
{% if not state %}
|
{% if not state %}
|
||||||
{% if stage.configure_flow %}
|
{% if stage.configure_flow %}
|
||||||
<a href="{% url 'authentik_flows:configure' stage_uuid=stage.stage_uuid %}?next={{ request.get_full_path }}" class="ak-root-link pf-c-button pf-m-primary">{% trans "Enable Time-based OTP" %}</a>
|
<a href="{% url 'authentik_flows:configure' stage_uuid=stage.stage_uuid %}?next={% url 'authentik_core:user-settings' %}" class="ak-root-link pf-c-button pf-m-primary">{% trans "Enable Time-based OTP" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="{% url 'authentik_stages_otp_time:disable' stage_uuid=stage.stage_uuid %}" class="ak-root-pf-c-button pf-m-danger">{% trans "Disable Time-based OTP" %}</a>
|
<a href="{% url 'authentik_stages_otp_time:disable' stage_uuid=stage.stage_uuid %}" class="ak-root-pf-c-button pf-m-danger">{% trans "Disable Time-based OTP" %}</a>
|
||||||
|
|
|
@ -38,4 +38,4 @@ class DisableView(LoginRequiredMixin, View):
|
||||||
Event.new("totp_disable", message="User disabled Time-based OTP.").from_http(
|
Event.new("totp_disable", message="User disabled Time-based OTP.").from_http(
|
||||||
request
|
request
|
||||||
)
|
)
|
||||||
return redirect("authentik_stages_otp:otp-user-settings")
|
return redirect("authentik_core:user-settings")
|
||||||
|
|
Reference in New Issue