flows: default-auth -> default-authentication

This commit is contained in:
Jens Langhammer 2020-05-12 14:49:47 +02:00
parent 7500e622f6
commit 137e90355b
5 changed files with 6 additions and 6 deletions

View File

@ -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):

View File

@ -37,7 +37,7 @@
{{ user.username }}
</div>
<div class="right">
<a href="{% url 'passbook_flows:default-auth' %}">{% trans 'Not you?' %}</a>
<a href="{% url 'passbook_flows:default-authentication' %}">{% trans 'Not you?' %}</a>
</div>
</div>
</div>

View File

@ -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/",

View File

@ -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

View File

@ -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"
)