From 137e90355bbd1fd447f07a9142baceb4fb1167fc Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Tue, 12 May 2020 14:49:47 +0200 Subject: [PATCH] flows: default-auth -> default-authentication --- passbook/admin/views/overview.py | 2 +- passbook/core/templates/login/form_with_user.html | 2 +- passbook/flows/urls.py | 4 ++-- passbook/root/settings.py | 2 +- passbook/root/urls.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/passbook/admin/views/overview.py b/passbook/admin/views/overview.py index 41b1ffaa4..1b1b0a88b 100644 --- a/passbook/admin/views/overview.py +++ b/passbook/admin/views/overview.py @@ -20,7 +20,7 @@ class AdministrationOverviewView(AdminRequiredMixin, TemplateView): """Handle post (clear cache from modal)""" if "clear" in self.request.POST: cache.clear() - return redirect(reverse("passbook_flows:default-auth")) + return redirect(reverse("passbook_flows:default-authentication")) return self.get(*args, **kwargs) def get_context_data(self, **kwargs): diff --git a/passbook/core/templates/login/form_with_user.html b/passbook/core/templates/login/form_with_user.html index b1ac95753..f1b418b65 100644 --- a/passbook/core/templates/login/form_with_user.html +++ b/passbook/core/templates/login/form_with_user.html @@ -37,7 +37,7 @@ {{ user.username }}
- {% trans 'Not you?' %} + {% trans 'Not you?' %}
diff --git a/passbook/flows/urls.py b/passbook/flows/urls.py index 44b7cde00..96d1eb8ed 100644 --- a/passbook/flows/urls.py +++ b/passbook/flows/urls.py @@ -11,9 +11,9 @@ from passbook.flows.views import ( urlpatterns = [ path("-/denied/", FlowPermissionDeniedView.as_view(), name="denied"), path( - "-/default/auth/", + "-/default/authentication/", ToDefaultFlow.as_view(designation=FlowDesignation.AUTHENTICATION), - name="default-auth", + name="default-authentication", ), path( "-/default/invalidation/", diff --git a/passbook/root/settings.py b/passbook/root/settings.py index cd19685d8..25d70f256 100644 --- a/passbook/root/settings.py +++ b/passbook/root/settings.py @@ -44,7 +44,7 @@ INTERNAL_IPS = ["127.0.0.1"] ALLOWED_HOSTS = ["*"] SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") -LOGIN_URL = "passbook_flows:default-auth" +LOGIN_URL = "passbook_flows:default-authentication" # CSRF_FAILURE_VIEW = 'passbook.core.views.errors.CSRFErrorView.as_view' # Custom user model diff --git a/passbook/root/urls.py b/passbook/root/urls.py index a418d097c..67bc4af73 100644 --- a/passbook/root/urls.py +++ b/passbook/root/urls.py @@ -11,7 +11,7 @@ from passbook.root.monitoring import MetricsView LOGGER = get_logger() admin.autodiscover() -admin.site.login = RedirectView.as_view(pattern_name="passbook_flows:default-auth") +admin.site.login = RedirectView.as_view(pattern_name="passbook_flows:default-authentication") admin.site.logout = RedirectView.as_view( pattern_name="passbook_flows:default-invalidate" )