From 6e55431d4c97566865e0973b0eec6deee2ce256f Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 12 Dec 2020 23:13:29 +0100 Subject: [PATCH] stages/*: fix redirects not pointing to user_settings --- .../otp_static/templates/stages/otp_static/user_settings.html | 2 +- authentik/stages/otp_static/views.py | 2 +- .../otp_time/templates/stages/otp_time/user_settings.html | 2 +- authentik/stages/otp_time/views.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/authentik/stages/otp_static/templates/stages/otp_static/user_settings.html b/authentik/stages/otp_static/templates/stages/otp_static/user_settings.html index f26509103..1c723707d 100644 --- a/authentik/stages/otp_static/templates/stages/otp_static/user_settings.html +++ b/authentik/stages/otp_static/templates/stages/otp_static/user_settings.html @@ -22,7 +22,7 @@ {% if not state %} {% if stage.configure_flow %} - {% trans "Enable Static Tokens" %} + {% trans "Enable Static Tokens" %} {% endif %} {% else %} {% trans "Disable Static Tokens" %} diff --git a/authentik/stages/otp_static/views.py b/authentik/stages/otp_static/views.py index 0f561d696..2dd113fdc 100644 --- a/authentik/stages/otp_static/views.py +++ b/authentik/stages/otp_static/views.py @@ -41,4 +41,4 @@ class DisableView(LoginRequiredMixin, View): Event.new( "static_otp_disable", message="User disabled Static OTP Tokens." ).from_http(request) - return redirect("authentik_stages_otp:otp-user-settings") + return redirect("authentik_core:user-settings") diff --git a/authentik/stages/otp_time/templates/stages/otp_time/user_settings.html b/authentik/stages/otp_time/templates/stages/otp_time/user_settings.html index 9d3fa624e..c6e24146e 100644 --- a/authentik/stages/otp_time/templates/stages/otp_time/user_settings.html +++ b/authentik/stages/otp_time/templates/stages/otp_time/user_settings.html @@ -18,7 +18,7 @@

{% if not state %} {% if stage.configure_flow %} - {% trans "Enable Time-based OTP" %} + {% trans "Enable Time-based OTP" %} {% endif %} {% else %} {% trans "Disable Time-based OTP" %} diff --git a/authentik/stages/otp_time/views.py b/authentik/stages/otp_time/views.py index 813f76508..ad09a3c8b 100644 --- a/authentik/stages/otp_time/views.py +++ b/authentik/stages/otp_time/views.py @@ -38,4 +38,4 @@ class DisableView(LoginRequiredMixin, View): Event.new("totp_disable", message="User disabled Time-based OTP.").from_http( request ) - return redirect("authentik_stages_otp:otp-user-settings") + return redirect("authentik_core:user-settings")